X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f3e5707f9a6e2aab0fc27b6cb2cd6173fafd11dc..f835afb5d9c32ac91b51acfb225a38f9b04fe6f1:/package/base-files/files/etc/init.d/boot diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index 44b53fe27..c798df3c8 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 @@ -80,8 +83,8 @@ start() { killall -q hotplug2 [ -x /sbin/hotplug2 ] && /sbin/hotplug2 --override --persistent \ - --set-worker /lib/hotplug2/worker_fork.so \ --set-rules-file /etc/hotplug2.rules \ + --set-coldplug-cmd /sbin/udevtrigger \ --max-children 1 >/dev/null 2>&1 & # the coldplugging of network interfaces needs to happen later, so we do it manually here