summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2009-03-18 12:20:21 +0000
committerMichael Büsch <mb@bu3sch.de>2009-03-18 12:20:21 +0000
commit088ea2fb6e8c56778c1f952c31fe063116e4fc46 (patch)
treeb5902bc4654dc2e60a4d104d169b54b717ec7434 /package/base-files
parentb1e8b4677da93438a2263ad61a4fddc37fed1ba2 (diff)
downloadmtk-20170518-088ea2fb6e8c56778c1f952c31fe063116e4fc46.zip
mtk-20170518-088ea2fb6e8c56778c1f952c31fe063116e4fc46.tar.gz
mtk-20170518-088ea2fb6e8c56778c1f952c31fe063116e4fc46.tar.bz2
Support configurations without syslogd/klogd.
SVN-Revision: 14937
Diffstat (limited to 'package/base-files')
-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 b03209d..8506424 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() {(