Tobias Frost wrote:
> 
> "powersave -U" (S2D) seems to check for a kernel in /boot/vmlinuz.
> But in debian, the running kernel is /boot/vmlinuz-(Version)
> and there can be a sym-link /vmlinuz pointing to the kernel.
> 
> Therefore, the check fails, and suspend to disk won't start
> (disabling the safty-check is not what I want)
> 

Hi Tobias,

attached is a small patch which I hope does what you want. Could you
please apply it to /usr/lib/powersave/scripts/prepare_suspend_to_disk
and let me know if it works for you.

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
Index: prepare_suspend_to_disk
===================================================================
--- prepare_suspend_to_disk	(Revision 677)
+++ prepare_suspend_to_disk	(Arbeitskopie)
@@ -112,7 +112,7 @@
     # if there is no default entry (no menu.lst? Using LILO?) we fall back to
     # the default of /boot/vmlinuz.
     [ -z "$BOOTING" ] && BOOTING="vmlinuz"
-    if IMAGE=`readlink /boot/$BOOTING` && [ -e "/boot/${IMAGE##*/}" ]; then
+    if IMAGE=`readlink /$BOOTING` && [ -e "/boot/${IMAGE##*/}" ]; then
         BOOTING=$IMAGE
     fi
     BOOTING="${BOOTING#*vmlinuz-}"

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to