move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works...
[openwrt/svn-archive/archive.git] / package / base-files / files / etc / init.d / boot
index df2afd6b8ed4040f34a8637deba5b3e298c795b7..88dded646c3db1df2a75a68b64d78af8f5e6dc9d 100755 (executable)
@@ -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
@@ -44,6 +48,7 @@ start() {
        ln -sf /tmp/resolv.conf.auto /tmp/resolv.conf
        [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
 
+       killall -q hotplug2
        [ -x /sbin/hotplug2 ] && /sbin/hotplug2 --override --persistent \
                        --max-children 1 --no-coldplug &