2
0
forked from Ivasoft/openwrt

add K* scripts to be run at shutdown

SVN-Revision: 7163
This commit is contained in:
Mike Baker
2007-05-10 10:07:38 +00:00
parent 15e9bc4f26
commit 291420a8f3
6 changed files with 16 additions and 8 deletions

View File

@@ -40,6 +40,7 @@ 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]}"
}
enabled() {