X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/91e083bf473b8c6fa6444a8c51f703fba6c314f4..efd888e4be8c8b29a77a06a7e6ae1318badf9719:/package/base-files/files/etc/init.d/boot?ds=inline diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index df2afd6b8..49562b78d 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 @@ -41,9 +45,11 @@ start() { chown 0700 /tmp/.uci touch /var/log/wtmp touch /var/log/lastlog + touch /tmp/resolv.conf.auto 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 &