set the timezone from rc.conf
This commit is contained in:
parent
362571f19a
commit
f65b360295
7
rc.in
7
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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user