[Pm-utils] Fix 'running hooks output' and add logging hook
Holger Macht
hmacht at suse.de
Sat Nov 11 15:36:05 PST 2006
Hi,
I've attached a patch which fixes the output of what hook is currenly
executed.
Additionally, I've attached a new hook that does basic logging like lsmod
or the current kernel version. Unfortunatelly, if no logfile is set, the
lsmod output is quite big on the command line. So maybe we should do
something like 'if [ -n "$PM_LOGFILE ]; then...' for this output. Comments
appreciated.
Regards,
Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pm-utils-fix-running-hooks-output.patch
Type: text/x-patch
Size: 634 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20061112/76253f9e/pm-utils-fix-running-hooks-output.bin
-------------- next part --------------
#!/bin/bash
case "$1" in
hibernate|suspend)
echo -e "Kernel version: `/bin/uname -a`\n"
echo -e "`lsmod`\n"
echo -e "`free`\n"
;;
thaw|resume)
echo "===== DONE ====="
;;
*)
;;
esac
exit 0
More information about the Pm-utils
mailing list