summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-18 12:20:21 +0000
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-18 12:20:21 +0000
commitf8f902be7b6a9af8e57bfc0ad182ae6cd3c75576 (patch)
tree85b350b6674d8992ae11927b12d9ff0ff71902ea /package/base-files/files/etc
parent4b00022ee76c673eef56398a4d2641fb88fc1331 (diff)
Support configurations without syslogd/klogd.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14937 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index b03209d8c..85064248e 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -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() {(