summaryrefslogtreecommitdiff
path: root/src/profiles/profile-base
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiles/profile-base')
-rw-r--r--src/profiles/profile-base10
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
}