summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/rc.common
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2007-05-10 10:07:38 +0000
committerMike Baker <mbm@openwrt.org>2007-05-10 10:07:38 +0000
commit291420a8f3552a1b48af4fc7418e5ca15c9ece3d (patch)
tree9b7d8719ef6ba95938d03930681caa1e730f8b81 /package/base-files/files/etc/rc.common
parent15e9bc4f266000ae86b912c3920690d0d3c70b73 (diff)
downloadmtk-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-xpackage/base-files/files/etc/rc.common1
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() {