diff options
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rwxr-xr-x | package/base-files/files/etc/init.d/network | 2 | ||||
-rwxr-xr-x | package/base-files/files/etc/init.d/rcS | 10 | ||||
-rwxr-xr-x | package/base-files/files/etc/init.d/sysctl | 7 |
3 files changed, 13 insertions, 6 deletions
diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network index 950b33726a..eab00118ad 100755 --- a/package/base-files/files/etc/init.d/network +++ b/package/base-files/files/etc/init.d/network @@ -2,6 +2,8 @@ # Copyright (C) 2006 OpenWrt.org START=40 +STOP=40 + boot() { setup_switch() { return 0; } diff --git a/package/base-files/files/etc/init.d/rcS b/package/base-files/files/etc/init.d/rcS index 755e08b9c8..61c1d6dab7 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 '' & diff --git a/package/base-files/files/etc/init.d/sysctl b/package/base-files/files/etc/init.d/sysctl new file mode 100755 index 0000000000..35d5e30c75 --- /dev/null +++ b/package/base-files/files/etc/init.d/sysctl @@ -0,0 +1,7 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +START=99 +start() { + [ -f /etc/sysctl.conf ] && sysctl -p >&- +} |