File spindown-suse_rc_script.patch of Package spindown

--- spindown.orig	2009-04-20 17:52:56.000000000 +0200
+++ spindown	2009-04-20 17:54:06.000000000 +0200
@@ -1,6 +1,20 @@
 #!/bin/bash
+### BEGIN INIT INFO
+# Provides:     spindown
+# Required-Start:   $local_fs $remote_fs
+# Required-Stop:    $local_fs $remote_fs
+# Default-Start:    1 2 3 5
+# Default-Stop:     0 1 2 3 4 6
+# Short-Description:    Spindown is a daemon to spindown idle disks
+# Description:      Spindown is a daemon to spindown idle disks
+### END INIT INFO
+
+. /etc/rc.status
+
+rc_reset
+
+DAEMON="/usr/sbin/spindownd"
 
-DAEMON="/sbin/spindownd"
 CONFPATH="/etc/spindown.conf"
 VARDIR="/var/run/spindown"
 FIFOPATH=$VARDIR"/spindownd.fifo"
@@ -144,4 +158,5 @@
         exit 1
 esac
 
-exit 0
+rc_exit
+
openSUSE Build Service is sponsored by