aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
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
commit6ac45aa7dbea69d06e3ca962ba1946e863500141 (patch)
treee3f82109343b72007438dadb02d11c3f83f245a6 /package/base-files
parent73fb225fd0920fef869970ec8b1ddb387b28c333 (diff)
downloadupstream-6ac45aa7dbea69d06e3ca962ba1946e863500141.tar.gz
upstream-6ac45aa7dbea69d06e3ca962ba1946e863500141.tar.bz2
upstream-6ac45aa7dbea69d06e3ca962ba1946e863500141.zip
[package] base-files: pass conloglevel to syslogd (#9463, #9647)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27400 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-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 357ae3f31d..2fec48c4f5 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