fix rcS for new ipcalc script
authorFelix Fietkau <nbd@openwrt.org>
Tue, 21 Mar 2006 17:08:23 +0000 (17:08 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 21 Mar 2006 17:08:23 +0000 (17:08 +0000)
SVN-Revision: 3438

openwrt/package/base-files/default/etc/init.d/rcS

index 6d5bcd7d200dcb2851600c57a1fa73a813d7fdd0..9e3285915ddb4d7025d6ca0f291c800e78f4cc0e 100755 (executable)
@@ -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}