set the timezone from rc.conf

This commit is contained in:
Jack L. Frost 2014-11-07 00:08:55 +03:00
parent 362571f19a
commit f65b360295

7
rc.in
View File

@ -108,6 +108,7 @@ rc.remount_root() {
rc.boot() { rc.boot() {
rc.mount_misc rc.mount_misc
rc.hostname rc.hostname
rc.timezone
rc.modules rc.modules
rc.services_start rc.services_start
wait wait
@ -143,6 +144,12 @@ rc.modules() {
done done
} }
rc.timezone() {
[[ "$cfg_timezone" ]] && {
ln -fs "/usr/share/zoneinfo/${cfg_timezone}" /etc/localtime
}
}
rc.main() { rc.main() {
source "@ETC@/rc.conf" source "@ETC@/rc.conf"