diff options
author | Mike Baker <mbm@openwrt.org> | 2007-05-10 10:07:38 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2007-05-10 10:07:38 +0000 |
commit | 291420a8f3552a1b48af4fc7418e5ca15c9ece3d (patch) | |
tree | 9b7d8719ef6ba95938d03930681caa1e730f8b81 /package/base-files/files/etc/rc.common | |
parent | 15e9bc4f266000ae86b912c3920690d0d3c70b73 (diff) | |
download | mtk-20170518-291420a8f3552a1b48af4fc7418e5ca15c9ece3d.zip mtk-20170518-291420a8f3552a1b48af4fc7418e5ca15c9ece3d.tar.gz mtk-20170518-291420a8f3552a1b48af4fc7418e5ca15c9ece3d.tar.bz2 |
add K* scripts to be run at shutdown
SVN-Revision: 7163
Diffstat (limited to 'package/base-files/files/etc/rc.common')
-rwxr-xr-x | package/base-files/files/etc/rc.common | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common index 5d9ee86..7ca1078 100755 --- a/package/base-files/files/etc/rc.common +++ b/package/base-files/files/etc/rc.common @@ -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() { |