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/init.d/rcS | |
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/init.d/rcS')
-rwxr-xr-x | package/base-files/files/etc/init.d/rcS | 10 |
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 '' & |