START/STOP values must be specified in the init script

SVN-Revision: 7164
master
Mike Baker 18 years ago
parent 291420a8f3
commit bef40307bb
  1. 7
      package/base-files/files/etc/rc.common
  2. 2
      package/br2684ctl/files/br2684ctl
  3. 1
      package/busybox/files/cron
  4. 1
      package/busybox/files/httpd
  5. 1
      package/busybox/files/telnet
  6. 1
      package/dropbear/files/dropbear.init

@ -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() {

@ -1,4 +1,6 @@
#!/bin/sh /etc/rc.common
START=50
stop() {
killall br2684ctl 2>/dev/null >/dev/null
sleep 1

@ -1,5 +1,6 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
start () {
mkdir -p /var/spool/cron

@ -1,5 +1,6 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
start() {
include /lib/network

@ -1,5 +1,6 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
start() {
if [ \! -f /etc/passwd ] || \

@ -1,5 +1,6 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
# Copyright (C) 2006 Carlos Sobrinho
config_cb() {

Loading…
Cancel
Save