+
+system_config() {
+ local cfg="$1"
+ local hostname
+
+ 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
+}
+
+apply_uci_config() {(
+ include /lib/config
+ uci_apply_defaults
+)}
+