1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 09:56:47 +02:00

[package] base-files: pass conloglevel to syslogd (#9463, #9647)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27400 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-07-03 15:11:58 +00:00
parent f2053cb231
commit 56801fec4e

View File

@ -27,9 +27,13 @@ system_config() {
config_get log_type "$cfg" log_type circular config_get log_type "$cfg" log_type circular
config_get log_file "$cfg" log_file "/var/log/messages" config_get log_file "$cfg" log_file "/var/log/messages"
if [ "$log_type" = "file" ]; then 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 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
fi fi
config_get klogconloglevel "$cfg" klogconloglevel config_get klogconloglevel "$cfg" klogconloglevel