make network scripts more robust, prevent multiple instances of pppd and udhcpc for...
[openwrt.git] / package / base-files / default / etc / init.d / rcS
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3
4 ${FAILSAFE:+exit}
5
6 # FIXME: add logging configuration
7 #[ -f /etc/config/network ] && . /etc/config/network
8 #eval $(ipcalc "$log_ipaddr")
9 #[ "$log_ipaddr" = "$IP" ] || log_ipaddr=""
10 syslogd -C 16 #${log_ipaddr:+-L -R $log_ipaddr}
11 klogd
12
13 (
14 for i in /etc/rc.d/S*; do
15 $i boot 2>&1
16 done
17
18 sysctl -p >&-
19
20 # automagically run firstboot
21 { mount|grep "on / type tmpfs" 1>&-; } && {
22 lock /tmp/.switch2jffs
23 firstboot switch2jffs
24 lock -u /tmp/.switch2jffs
25 }
26 ) | logger -s -p 6 -t '' &
This page took 0.044106 seconds and 5 git commands to generate.