base-files: now that we have date -k, adjust the kernel timezone after setting up...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 17 Nov 2011 01:18:22 +0000 (01:18 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 17 Nov 2011 01:18:22 +0000 (01:18 +0000)
SVN-Revision: 29204

package/base-files/Makefile
package/base-files/files/etc/init.d/boot

index 61043c295ab0cc8981279c7d24628c03bd60dab4..b93d2cb40262fc7a1b2e3fe33389accc93b6add4 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=95
+PKG_RELEASE:=96
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 PKG_BUILD_DEPENDS:=opkg/host
index 44b53fe27ae8ca0aa8435e27b87c3a1d987ae5b8..7eb4541ce264dcc782545a1a01e5bed12df3ec1e 100755 (executable)
@@ -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