package/base-files: use case statement in led init script
[openwrt.git] / package / base-files / files / etc / init.d / boot
index 44b53fe..7eb4541 100755 (executable)
@@ -15,13 +15,16 @@ system_config() {
        config_get conloglevel "$cfg" conloglevel
        config_get buffersize "$cfg" buffersize
        [ -z "$conloglevel" -a -z "$buffersize" ] || dmesg ${conloglevel:+-n $conloglevel} ${buffersize:+-s $buffersize}
-       
+
        config_get timezone "$cfg" timezone 'UTC'
        echo "$timezone" > /tmp/TZ
 
        config_get zonename "$cfg" zonename
        [ -n "$zonename" ] && [ -f "/usr/share/zoneinfo/$zonename" ] && ln -s "/usr/share/zoneinfo/$zonename" /tmp/localtime
 
+       # apply timezone to kernel
+       date -k
+
        if [ -x /sbin/syslogd ]; then
                local args log_ip log_size log_port log_type log_file
                config_get log_ip "$cfg" log_ip 
This page took 0.024104 seconds and 4 git commands to generate.