From: Felix Fietkau Date: Tue, 21 Mar 2006 17:08:23 +0000 (+0000) Subject: fix rcS for new ipcalc script X-Git-Tag: whiterussian_rc5~24 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bcf015c4e9eecfd8360cc98bc6c850b54907c2dd;p=openwrt%2Fsvn-archive%2Fopenwrt.git fix rcS for new ipcalc script SVN-Revision: 3438 --- diff --git a/openwrt/package/base-files/default/etc/init.d/rcS b/openwrt/package/base-files/default/etc/init.d/rcS index 6d5bcd7d20..9e3285915d 100755 --- a/openwrt/package/base-files/default/etc/init.d/rcS +++ b/openwrt/package/base-files/default/etc/init.d/rcS @@ -2,7 +2,8 @@ ${FAILSAFE:+exit} syslog_ip=$(nvram get log_ipaddr) -ipcalc -s "$syslog_ip" || syslog_ip="" +eval $(ipcalc "$syslog_ip") +[ "$syslog_ip" = "$IP" ] || syslog_ip="" syslogd -C 16 ${syslog_ip:+-L -R $syslog_ip} klogd #${FAILSAFE:+telnetd -l /bin/login; ifup lan; exit}