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.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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user