From f65b360295d549efbcc2e5a0f09e7d3f74164f22 Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 7 Nov 2014 00:08:55 +0300 Subject: [PATCH] set the timezone from rc.conf --- rc.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rc.in b/rc.in index 2eb17e8..02bb110 100755 --- a/rc.in +++ b/rc.in @@ -108,6 +108,7 @@ rc.remount_root() { rc.boot() { rc.mount_misc rc.hostname + rc.timezone rc.modules rc.services_start wait @@ -143,6 +144,12 @@ rc.modules() { done } +rc.timezone() { + [[ "$cfg_timezone" ]] && { + ln -fs "/usr/share/zoneinfo/${cfg_timezone}" /etc/localtime + } +} + rc.main() { source "@ETC@/rc.conf"