Package: hibernate Version: 1.93.svn1064-1~unreleased.1 Severity: wishlist Tags: patch
If we make /usr/sbin/suspend2ram a symlink to hibernate, the
following patch would cause it to read ram.conf instead of hibernate
if called that way.
--- /usr/sbin/hibernate 2006-08-08 16:54:34.000000000 +0200
+++ hibernate 2006-09-07 16:30:00.736544325 +0200
@@ -56,8 +56,12 @@
SWSUSP_D="/etc/hibernate"
SCRIPTLET_PATH="$SWSUSP_D/scriptlets.d /usr/local/share/hibernate/scriptlets.d
/usr/share/hibernate/scriptlets.d"
-DEFAULT_CONFIG_FILE="$SWSUSP_D/hibernate.conf"
-EXE=`basename $0`
+EXE="${0##*/}"
+case "$EXE" in
+ suspend2ram) DEFAULT_CONFIG_FILE="$SWSUSP_D/ram.conf";;
+ *) DEFAULT_CONFIG_FILE="$SWSUSP_D/hibernate.conf";;
+esac
+
VERSION="1.93"
# Add these to the $PATH just in case.
--
.''`. martin f. krafft <[EMAIL PROTECTED]>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
signature.asc
Description: Digital signature (GPG/PGP)

