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
1 changed files with 7 additions and 0 deletions

7
rc.in
View File

@ -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"