From 0bf765b362eab76837418f087be074aba4ee12ab Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 11 Jun 2008 19:59:16 +0000 Subject: system now knows which timezone it is in SVN-Revision: 11445 --- package/base-files/files/etc/config/system | 1 + package/base-files/files/etc/init.d/boot | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'package/base-files/files') 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 -- cgit v1.2.3