Browse Source

feat: add timezone support

canon
ix 6 years ago
parent
commit
053c64b012
  1. 4
      urc
  2. 4
      urc.conf

4
urc

@ -14,6 +14,7 @@ NETWORK_INTERFACE="eth0"
WIFI_INTERFACE="wlan0"
KBLAYOUT="us"
UDEV="busybox"
TIMEZONE="America/New_York"
custom_restart() { default_restart "$@"; }
custom_start() { default_start "$@"; }
@ -85,6 +86,9 @@ on_boot() {
echo 'Setting system clock.'
/sbin/hwclock --hctosys
echo 'Setting timezone.'
ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime
echo 'Mounting fstab.'
mount -a
mount -o remount,rw /

4
urc.conf

@ -25,6 +25,10 @@ KBLAYOUT="us"
# Set the udev implementation (systemd|eudev|smdev|busybox)
UDEV="busybox"
# Set the timezone
# Find your timezone in /usr/share/zoneinfo
TIMEZONE="America/New_York"
## FUNCTIONS
# This function starts daemons

Loading…
Cancel
Save