summaryrefslogtreecommitdiff
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
commit33443d2a8c3a202311751c6de72d7815d22f79f7 (patch)
treecf4f7b07852d4035b9e4a057fcb5858e6a6f1c04 /package/base-files/files/etc
parent5e36196651a14dd0588c9952698d8d68cdd44f1a (diff)
downloadmtk-20170518-33443d2a8c3a202311751c6de72d7815d22f79f7.zip
mtk-20170518-33443d2a8c3a202311751c6de72d7815d22f79f7.tar.gz
mtk-20170518-33443d2a8c3a202311751c6de72d7815d22f79f7.tar.bz2
base-files: now that we have date -k, adjust the kernel timezone after setting up TZ and localtime
SVN-Revision: 29204
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 44b53fe..7eb4541 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