mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
Update sys.in to add missing "disk" flag.
It seems like only the short output of hwinfo --disk is provided to hardware.txt. I'd suggest we also add disk to the flags for the "complete" output. That's especially useful when you need to indicate the serial number of a dead drive in order for it to be replaced. Once the disk is dead, using hardware.txt can be the only way to retrieve this info.
This commit is contained in:
parent
f9529d1d3f
commit
ac40f35542
@ -594,7 +594,7 @@ if [ "$hardware" == "yes" ]; then
|
||||
echo -e "\n\n====================== summary ======================\n" >> $hardwarefile
|
||||
debug "$HWINFO --short --cpu --network --disk --pci >> $hardwarefile"
|
||||
$HWINFO --short --cpu --network --disk --pci >> $hardwarefile
|
||||
for flag in cpu network bios pci; do
|
||||
for flag in cpu network disk bios pci; do
|
||||
echo -e "\n\n====================== $flag ======================\n" >> $hardwarefile
|
||||
$HWINFO --$flag >> $hardwarefile
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user