Add the conloglevel option (#1682)
authorFlorian Fainelli <florian@openwrt.org>
Wed, 13 Jun 2007 17:41:54 +0000 (17:41 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 13 Jun 2007 17:41:54 +0000 (17:41 +0000)
SVN-Revision: 7613

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

index 528d922a28a61955a9090cc40f98bf7360005ca8..7181f8b0043781713be9fde4bc1e03571a04d88c 100755 (executable)
@@ -10,6 +10,9 @@ system_config() {
        config_get hostname "$cfg" hostname
        echo "${hostname:-OpenWrt}" > /proc/sys/kernel/hostname
 
+       config_get conloglevel "$cfg" conloglevel
+       [ -n "$conloglevel" ] && dmesg -n "$conloglevel"
+
        config_get log_ip "$cfg" log_ip 
        syslogd -C16 ${log_ip:+-L -R $log_ip}
        klogd