Here's a patch I needed in order to get suspend2 to work using the hibernate script. I don't know exactly why this is needed, but it appears to have something to do with the PATH. I have more detailed information if any is interested. Basically this patch runs the hibernate script using "su - -c" instead of directly in the shell powersave uses to call the suspend2 event script.
-- Pat Double, [EMAIL PROTECTED] "In the beginning God created the heaven and the earth."
--- suspend2.orig 2006-08-19 07:50:42.000000000 -0500
+++ suspend2 2006-08-18 16:23:51.000000000 -0500
@@ -37,7 +37,7 @@
for X in $SCRIPTS; do
echo $X
if [ -x $I/$X ]; then
- $I/$X
+ su -c "$I/$X"
RET=$?
if [ $RET = 0 ]; then
$SCRIPT_RETURN $EV_ID 0 "suspend2 finished"
pgp2ArKfE6Md4.pgp
Description: PGP signature
_______________________________________________ powersave-devel mailing list [email protected] http://forge.novell.com/mailman/listinfo/powersave-devel
