summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-06-11 19:59:16 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-06-11 19:59:16 +0000
commit2964b01abc4f2649ccf41b7d2c22a4ddf83eaabb (patch)
treee86cee2295718206b73a7134728ff5e3048a8c21 /package/base-files/files/etc
parentdde8e9a63e4e787e64314603657aa6bd4e380128 (diff)
system now knows which timezone it is in
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11445 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc')
-rw-r--r--package/base-files/files/etc/config/system1
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot4
2 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/files/etc/config/system b/package/base-files/files/etc/config/system
index 204a73a986..b0726b7b7b 100644
--- a/package/base-files/files/etc/config/system
+++ b/package/base-files/files/etc/config/system
@@ -1,2 +1,3 @@
config system
option hostname OpenWrt
+ option timezone UTC
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index df2afd6b8e..57c034eb48 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -12,6 +12,10 @@ 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
config_get log_size "$cfg" log_size