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
? pm-utils-0.20.0.2006.10.24
Index: pm/functions
===================================================================
RCS file: /cvs/pm-utils/pm-utils/pm/functions,v
retrieving revision 1.28
diff -u -r1.28 functions
--- pm/functions 31 Oct 2006 17:52:16 -0000 1.28
+++ pm/functions 11 Nov 2006 23:31:33 -0000
@@ -82,14 +82,14 @@
let filen--
file="${filea[$filen]}"
if [ -x $file ]; then
- echo "$i"
+ echo "===== current hook: $file ====="
$file $1
fi
done
else
for file in $files ; do
if [ -x $file ]; then
- echo "$i"
+ echo "===== current hook: $file ====="
$file $1
fi
done
#!/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
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils