aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc/init.d/rcS
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2005-07-20 19:58:40 +0000
committerMike Baker <mbm@openwrt.org>2005-07-20 19:58:40 +0000
commit3954f5bb6270b5b7291fbd4c09c4f8e6c88c5f42 (patch)
tree702dae2c4cb6b1e26b3c135cc3f3116b76dd5d84 /package/base-files/default/etc/init.d/rcS
parentf1c0a4e24379c4c0996101563821606a6a6cdceb (diff)
downloadupstream-3954f5bb6270b5b7291fbd4c09c4f8e6c88c5f42.tar.gz
upstream-3954f5bb6270b5b7291fbd4c09c4f8e6c88c5f42.tar.bz2
upstream-3954f5bb6270b5b7291fbd4c09c4f8e6c88c5f42.zip
updates from whiterussian
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1504 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/etc/init.d/rcS')
-rwxr-xr-xpackage/base-files/default/etc/init.d/rcS7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/base-files/default/etc/init.d/rcS b/package/base-files/default/etc/init.d/rcS
index e6daddc593..706585801c 100755
--- a/package/base-files/default/etc/init.d/rcS
+++ b/package/base-files/default/etc/init.d/rcS
@@ -1,8 +1,9 @@
#!/bin/sh
-syslogd -C 16
+syslog_ip=$(nvram get log_ipaddr)
+ipcalc -s "$syslog_ip" || syslog_ip=""
+syslogd -C 16 ${syslog_ip:+-L -R $syslog_ip}
klogd
-${FAILSAFE:+telnetd -l /bin/login; ifup lan; exit}
-
+#${FAILSAFE:+telnetd -l /bin/login; ifup lan; exit}
for i in /etc/init.d/S*; do
$i start 2>&1
done | logger -s -p 6 -t '' &