system now knows which timezone it is in
[openwrt.git] / package / base-files / files / etc / init.d / boot
index 0b77447..57c034e 100755 (executable)
@@ -12,9 +12,14 @@ system_config() {
 
        config_get conloglevel "$cfg" conloglevel
        [ -n "$conloglevel" ] && dmesg -n "$conloglevel"
+       
+       config_get timezone "$cfg" timezone 
+       [ -z "$timezone" ] && timezone=UTC
+       echo "$timezone" > /tmp/TZ
 
        config_get log_ip "$cfg" log_ip 
-       syslogd -C16 ${log_ip:+-L -R $log_ip}
+       config_get log_size "$cfg" log_size
+       syslogd -C${log_size:-16} ${log_ip:+-L -R $log_ip}
        klogd
 }
 
@@ -26,7 +31,7 @@ apply_uci_config() {(
 start() {
        [ -f /proc/mounts ] || /sbin/mount_root
        [ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
-       vconfig set_name_type DEV_PLUS_VID_NO_PAD
+       [ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD
 
        apply_uci_config
        config_load system
This page took 0.032878 seconds and 4 git commands to generate.