File laptop-mode-1.49-initscript.diff of Package laptop-mode-tools
Index: b/etc/init.d/laptop-mode
================================================================================
--- laptop-mode-tools_1.41/etc/init.d/laptop-mode
+++ laptop-mode-tools_1.41/etc/init.d/laptop-mode
@@ -1,10 +1,16 @@
#! /bin/sh
#
-# chkconfig: - 99 99
-# description: Starts and stops "laptop-mode" - tweaks system behavior
-# to extend battery life.
-#
-# config: /etc/laptop-mode/laptop-mode.conf
+### BEGIN INIT INFO
+# Provides: laptop-mode
+# Required-Start: $remote_fs dbus
+# Required-Stop: $remote_fs dbus
+# Default-Start: 3 5
+# Default-Stop: 0 1 2 6
+# Short-Description: Starts and stops "laptop-mode"
+# Description: Starts and stops "laptop-mode" - tweaks system behavior
+# to extend battery life.
+### END INIT INFO
+
test -f /usr/sbin/laptop_mode || exit 0