I thought you might be interested in the attached patches which
implement a different way to pass parameters.
--- hdapsd.dpkg-dist    2007-01-07 07:54:58.000000000 -0500
+++ hdapsd      2007-01-28 21:42:40.000000000 -0500
@@ -10,9 +10,7 @@
 # on SATA ThinkPads.
 DISK=hda
 
-# hdapsd sensitivity
-# the lower the threshold is the earlier
-# the heads are parked when the laptop is shaked
+# other options to pass to hdapsd.
+# the -d and -b options are always passed.
 #
-# The recommended setting is 15.
-THRESHOLD=15
+OPTIONS=
--- hdapsd.dpkg-dist    2007-01-07 07:54:58.000000000 -0500
+++ hdapsd      2007-01-28 21:42:28.000000000 -0500
@@ -22,6 +22,8 @@
 PIDFILE=/var/run/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
 START=no
+DISK=hda
+OPTIONS=
 
 # Exit if the package is not installed
 [ -x "$DAEMON" ] || exit 0
@@ -40,7 +42,7 @@
 . /lib/lsb/init-functions
 
 
-DAEMON_ARGS="-d $DISK -s $THRESHOLD -b"
+DAEMON_ARGS="-d $DISK -b $OPTIONS"
 
 #
 # Function that starts the daemon/service

Reply via email to