summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-03 15:11:58 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-03 15:11:58 +0000
commit32731a72c2a689774ae3dbe78eb18fc884c78c10 (patch)
treed752e99c15cf5a1acb987f93ded46c5a64eef7f3 /package
parent6e7b802297fe68224a4546a3a6a61ae04999f06c (diff)
downloadmtk-20170518-32731a72c2a689774ae3dbe78eb18fc884c78c10.zip
mtk-20170518-32731a72c2a689774ae3dbe78eb18fc884c78c10.tar.gz
mtk-20170518-32731a72c2a689774ae3dbe78eb18fc884c78c10.tar.bz2
base-files: pass conloglevel to syslogd (#9463, #9647)
SVN-Revision: 27400
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 357ae3f..2fec48c 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -27,9 +27,13 @@ system_config() {
config_get log_type "$cfg" log_type circular
config_get log_file "$cfg" log_file "/var/log/messages"
if [ "$log_type" = "file" ]; then
- syslogd -s $log_size -O $log_file ${log_ip:+-L -R ${log_ip}:${log_port}} -S
+ syslogd -s $log_size -O $log_file \
+ ${log_ip:+-L -R ${log_ip}:${log_port}} \
+ ${conloglevel:+-l $conloglevel} -S
else
- syslogd -C${log_size} ${log_ip:+-L -R ${log_ip}:${log_port}}
+ syslogd -C${log_size} \
+ ${log_ip:+-L -R ${log_ip}:${log_port}} \
+ ${conloglevel:+-l $conloglevel}
fi
fi
config_get klogconloglevel "$cfg" klogconloglevel