move syslogd and klogd to init.di/boot script, add remote logging support
authorMike Baker <mbm@openwrt.org>
Thu, 10 May 2007 09:29:55 +0000 (09:29 +0000)
committerMike Baker <mbm@openwrt.org>
Thu, 10 May 2007 09:29:55 +0000 (09:29 +0000)
SVN-Revision: 7160

package/base-files/files/etc/init.d/boot
package/base-files/files/etc/init.d/rcS

index e586704a285b3988920475921b0a6f8284e4a99f..528d922a28a61955a9090cc40f98bf7360005ca8 100755 (executable)
@@ -9,6 +9,10 @@ system_config() {
        
        config_get hostname "$cfg" hostname
        echo "${hostname:-OpenWrt}" > /proc/sys/kernel/hostname
+
+       config_get log_ip "$cfg" log_ip 
+       syslogd -C16 ${log_ip:+-L -R $log_ip}
+       klogd
 }
 
 apply_uci_config() {(
index 4e72bd905d373e37558fe838c8dab4e31c278b92..755e08b9c8520b24b8d2adeabd898a53b6a68d90 100755 (executable)
@@ -1,15 +1,6 @@
 #!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 
-${FAILSAFE:+exit}
-
-# FIXME: add logging configuration
-#[ -f /etc/config/network ] && . /etc/config/network
-#eval $(ipcalc "$log_ipaddr")
-#[ "$log_ipaddr" = "$IP" ] || log_ipaddr=""
-syslogd -C16 #${log_ipaddr:+-L -R $log_ipaddr}
-klogd
-
 (
        for i in /etc/rc.d/S*; do
                $i boot 2>&1