summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d/rcS
diff options
context:
space:
mode:
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 '' &