2 # Copyright (C) 2006 OpenWrt.org
5 for i
in /etc
/rc.d
/$1*; do
6 [ -x $i ] && $i $2 2>&1
11 config_get_bool foreground
$1 foreground
0
15 [ -x /usr
/bin
/logger
] && LOGGER
="logger -s -p 6 -t sysinit"
20 config_foreach system_config system
22 if [ "$1" = "S" -a "$foreground" != "1" ]; then
23 run_scripts
"$1" "$2" &