summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d/rcS
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/init.d/rcS
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/init.d/rcS')
-rwxr-xr-xpackage/base-files/files/etc/init.d/rcS10
1 files changed, 4 insertions, 6 deletions
diff --git a/package/base-files/files/etc/init.d/rcS b/package/base-files/files/etc/init.d/rcS
index 755e08b..61c1d6d 100755
--- a/package/base-files/files/etc/init.d/rcS
+++ b/package/base-files/files/etc/init.d/rcS
@@ -1,10 +1,8 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
-(
- for i in /etc/rc.d/S*; do
- $i boot 2>&1
+{
+ for i in /etc/rc.d/$1*; do
+ $i $2 2>&1
done
-
- sysctl -p >&-
-) | logger -s -p 6 -t '' &
+} | logger -s -p 6 -t '' &