START/STOP values must be specified in the init script
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 10 May 2007 10:38:53 +0000 (10:38 +0000)
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 10 May 2007 10:38:53 +0000 (10:38 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7164 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/rc.common
package/br2684ctl/files/br2684ctl
package/busybox/files/cron
package/busybox/files/httpd
package/busybox/files/telnet
package/dropbear/files/dropbear.init

index 7ca1078..453cdbf 100755 (executable)
@@ -3,8 +3,6 @@
 
 . $IPKG_INSTROOT/etc/functions.sh
 
-START=50
-
 start() {
        return 0
 }
@@ -34,13 +32,14 @@ shutdown() {
 disable() {
        name="$(basename "${initscript}")"
        rm -f "$IPKG_INSTROOT"/etc/rc.d/S??$name
+       rm -f "$IPKG_INSTROOT"/etc/rc.d/K??$name
 }
 
 enable() {
        name="$(basename "${initscript}")"
        disable
-       ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}"
-       [ "$STOP" ] && ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/K${START}${name##K[0-9][0-9]}"
+       [ "$START" ] && ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}"
+       [ "$STOP"  ] && ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/K${START}${name##K[0-9][0-9]}"
 }
 
 enabled() {
index b3ea34e..b121c7a 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh /etc/rc.common
+START=50
+
 stop() {
        killall br2684ctl 2>/dev/null >/dev/null
        sleep 1
index e78d023..cf0f725 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org
+START=50
 
 start () {
        mkdir -p /var/spool/cron
index e4f5f48..35b7f62 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org
+START=50
 
 start() {
        include /lib/network
index c61fe73..5802584 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org
+START=50
 
 start() {
        if      [ \! -f /etc/passwd ] || \
index b629c1e..f671df7 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org
+START=50
 # Copyright (C) 2006 Carlos Sobrinho
 
 config_cb() {