diff options
Diffstat (limited to 'src/profiles/profile-base')
-rw-r--r-- | src/profiles/profile-base | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/profiles/profile-base b/src/profiles/profile-base index dd9a7b2..748bba0 100644 --- a/src/profiles/profile-base +++ b/src/profiles/profile-base @@ -64,7 +64,15 @@ worker_runtime_packages () worker_set_clock () { - true + HARDWARECLOCK=utc + TIMEZONE=`tzselect` + HWCLOCK_PARAMS=" --utc" + if [ "$TIMEZONE" != "" -a -e "/usr/share/zoneinfo/$TIMEZONE" ] + then + cp "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime + fi + /sbin/hwclock --hctosys $HWCLOCK_PARAMS --noadjfile + #TODO: user must set date/time and store it } |