Support configurations without syslogd/klogd.
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 18 Mar 2009 12:20:21 +0000 (12:20 +0000)
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 18 Mar 2009 12:20:21 +0000 (12:20 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14937 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index b03209d..8506424 100755 (executable)
@@ -20,8 +20,8 @@ system_config() {
        config_get log_ip "$cfg" log_ip 
        config_get log_size "$cfg" log_size
        config_get log_port "$cfg" log_port
-       syslogd -C${log_size:-16} ${log_ip:+-L -R $log_ip${log_port:+:$log_port}}
-       klogd
+       [ -x /sbin/syslogd ] && syslogd -C${log_size:-16} ${log_ip:+-L -R $log_ip${log_port:+:$log_port}}
+       [ -x /sbin/klogd ] && klogd
 }
 
 apply_uci_config() {(
This page took 0.02328 seconds and 4 git commands to generate.