base-files: pass conloglevel to syslogd (#9463, #9647)
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 3 Jul 2011 15:11:58 +0000 (15:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 3 Jul 2011 15:11:58 +0000 (15:11 +0000)
SVN-Revision: 27400

package/base-files/files/etc/init.d/boot

index 357ae3f31d468d2e500741959f82d4d595999443..2fec48c4f5d05e7265633657370d36680ed8e03c 100755 (executable)
@@ -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