diff options
-rwxr-xr-x | rc.boot | 8 | ||||
-rw-r--r-- | rc.conf | 4 |
2 files changed, 12 insertions, 0 deletions
@@ -135,6 +135,14 @@ out "Getting keymap settings..."; { [ -n "$keymap" ] && loadkmap < "$keymap" } +[ "$timezone" ] && out "Setting system time ("$timezone")" && { + if [ -f "/usr/share/zoneinfo/$timezone" ]; then + ln -sf "/usr/share/zoneinfo/$timezone" /etc/localtime + else + error "/usr/share/zoneinfo/$timezone could not be found" + fi +} + out "Loading sysctl settings..."; { find /run/sysctl.d \ @@ -8,3 +8,7 @@ keymap= # Set dmesg level dmesg_level= +# Set timezone +# You either need tzdata package installed, or need to put your timezone +# inside /usr/share/zoneinfo/ and set the variable to the relative path. +timezone= |