diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-04-05 02:09:22 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-04-05 02:09:22 +0000 |
commit | ee27e41337497f69d27cd689fe19ba2c89e95f79 (patch) | |
tree | 302d5239acd2ed8e10f5310599a381bb22f193e0 /openwrt/package/base-files/default/etc/init.d/rcS | |
parent | e4b534024d6dc903ef48628dda1203d0d7c5bfcb (diff) | |
download | mtk-20170518-ee27e41337497f69d27cd689fe19ba2c89e95f79.zip mtk-20170518-ee27e41337497f69d27cd689fe19ba2c89e95f79.tar.gz mtk-20170518-ee27e41337497f69d27cd689fe19ba2c89e95f79.tar.bz2 |
large init script cleanup and merge of whiterussian changes, new dnsmasq config handling
SVN-Revision: 3588
Diffstat (limited to 'openwrt/package/base-files/default/etc/init.d/rcS')
-rwxr-xr-x | openwrt/package/base-files/default/etc/init.d/rcS | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/rcS b/openwrt/package/base-files/default/etc/init.d/rcS index 10079c5..b38e449 100755 --- a/openwrt/package/base-files/default/etc/init.d/rcS +++ b/openwrt/package/base-files/default/etc/init.d/rcS @@ -1,8 +1,10 @@ #!/bin/sh -. /etc/nvram.sh -syslog_ip=$(nvram get log_ipaddr) -ipcalc -s "$syslog_ip" || syslog_ip="" -syslogd -C 16 ${syslog_ip:+-L -R $syslog_ip} +${FAILSAFE:+exit} + +[ -f /etc/config/network ] && . /etc/config/network +eval $(ipcalc "$log_ipaddr") +[ "$log_ipaddr" = "$IP" ] || log_ipaddr="" +syslogd -C 16 ${log_ipaddr:+-L -R $log_ipaddr} klogd #${FAILSAFE:+telnetd -l /bin/login; ifup lan; exit} for i in /etc/init.d/S*; do |