summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d/boot
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2008-06-11 19:59:16 +0000
committerJohn Crispin <john@openwrt.org>2008-06-11 19:59:16 +0000
commit0bf765b362eab76837418f087be074aba4ee12ab (patch)
tree7d382f284151e430ea066420cf46218af15c88e6 /package/base-files/files/etc/init.d/boot
parentab504da309f1282bea2bf76b23c2fa8173b17ae3 (diff)
downloadmtk-20170518-0bf765b362eab76837418f087be074aba4ee12ab.zip
mtk-20170518-0bf765b362eab76837418f087be074aba4ee12ab.tar.gz
mtk-20170518-0bf765b362eab76837418f087be074aba4ee12ab.tar.bz2
system now knows which timezone it is in
SVN-Revision: 11445
Diffstat (limited to 'package/base-files/files/etc/init.d/boot')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index df2afd6..57c034e 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