well, not really, but i worked around a bug that i don't understand.
# replace * with %, so that it is not globbed.
ret="${ret//\\*/__star__}"
- ret="${ret//\*/__star__}"
# this is weird, but single quotes are needed to
# allow for returned values with spaces. $ret is still expanded
-version 0.4.3 -- Jan 20 2005
+version 0.4.3 -- ????
results of handlers are now read line by line.
- changes to rdiff handler: added "options", and "keep" is not necessarily days now.
+ changes to rdiff handler: added "options", and "keep" is
+ not necessarily days now (ie, it will pass straight through to
+ rdiff-backup if the keep has a unit on it, otherwise it adds the 'D').
added dup handler (still pretty beta)
added maildir handler (very specialized handler)
added --run option (runs the specified action file)
improved sys handler, now uses hwinfo
+ added PATH to cron.d file, which fixes file not found errors.
version 0.4.2 -- Jan 6 2005
fixed bug which caused a report email to be sent even if no actions were run.
# this config file will save various reports of vital system information.
# by default, all the reports are enabled and are saved in /var/backups.
#
+# requires dpkg, sfdisk, and hwinfo
+#
# (1) a list of all the packages installed and removed.
# this file can be used to restore the state of installed packages
# by running "dpkg --set-selections < dpkg-selections.txt
# (MAKE SURE YOU PARTITION THE CORRECT DISK!!!)
#
# (3) hardware information.
-# a simple report is generated of the kernel modules, the devices,
-# and the model of the hardware which 'discover' is able to detect.
+# detailed information on most important aspects of the hardware.
#
# here are the defaults, commented out:
# packagesfile = /var/backups/dpkg-selections.txt
# partitions = yes
-# partitionsfile = /var/backups/partitions.*.txt
+# partitionsfile = /var/backups/partitions.__star__.txt
# hardware = yes
# hardwarefile = /var/backups/hardware.txt
# (MAKE SURE YOU PARTITION THE CORRECT DISK!!!)
#
# (3) hardware information.
-# write to a text file the important things which hwinfo can discover.
+# write to a text file the important things which hwinfo can gleen.
#
getconf packages yes
getconf packagesfile /var/backups/dpkg-selections.txt
getconf partitions yes
-getconf partitionsfile '/var/backups/partitions.*.txt'
+getconf partitionsfile /var/backups/partitions.__star__.txt
getconf hardware yes
getconf hardwarefile /var/backups/hardware.txt
fi
touch $hardwarefile
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 disk bios pci; do
echo -e "\n\n====================== $flag ======================\n" >> $hardwarefile