aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-11-17 01:18:22 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-11-17 01:18:22 +0000
commit0e9b267b5c2fdf79ac9627c05a2460ee36224e92 (patch)
treeda0b5f80139f675dd4da7761524df19dad0710a4 /package/base-files/files/etc
parent681ec3b21e7bf887b87b90421d87e3dd6ca018aa (diff)
downloadupstream-0e9b267b5c2fdf79ac9627c05a2460ee36224e92.tar.gz
upstream-0e9b267b5c2fdf79ac9627c05a2460ee36224e92.tar.bz2
upstream-0e9b267b5c2fdf79ac9627c05a2460ee36224e92.zip
[package] base-files: now that we have date -k, adjust the kernel timezone after setting up TZ and localtime
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29204 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 44b53fe27a..7eb4541ce2 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -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