diff options
author | Mike Baker <mbm@openwrt.org> | 2007-05-10 10:38:53 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2007-05-10 10:38:53 +0000 |
commit | d52fe054abfa451454ef87530806c2269a0389d4 (patch) | |
tree | b44bd6416313506df775fe7159532070bdef006d /package/base-files/files/etc/rc.common | |
parent | 67481e68bec8d94fb23213c854e9971dff8b2bcd (diff) | |
download | master-187ad058-d52fe054abfa451454ef87530806c2269a0389d4.tar.gz master-187ad058-d52fe054abfa451454ef87530806c2269a0389d4.tar.bz2 master-187ad058-d52fe054abfa451454ef87530806c2269a0389d4.zip |
START/STOP values must be specified in the init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7164 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/rc.common')
-rwxr-xr-x | package/base-files/files/etc/rc.common | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common index 7ca107817d..453cdbf33a 100755 --- a/package/base-files/files/etc/rc.common +++ b/package/base-files/files/etc/rc.common @@ -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() { |