summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-11-02 10:39:46 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-11-02 10:39:46 +0100
commitc8a41a8f2afdb46e9da3bc9a677210b74b82eaab (patch)
treed7aa0a5bbdf25d81ae5de33131b42f831995cf66 /src
parentd85a378658a22d7b9c38f1026e4f640a6f2954c8 (diff)
clock stuff in base profile + note added to dieter profile
Diffstat (limited to 'src')
-rw-r--r--src/profiles/profile-automatic-dieter1
-rw-r--r--src/profiles/profile-base10
2 files changed, 10 insertions, 1 deletions
diff --git a/src/profiles/profile-automatic-dieter b/src/profiles/profile-automatic-dieter
index 66d7c41..397231d 100644
--- a/src/profiles/profile-automatic-dieter
+++ b/src/profiles/profile-automatic-dieter
@@ -23,6 +23,7 @@ phase_preparation ()
notify "**** From now on. everything will be automatic. Enjoy the show!" # not true: svn will complain about ssl cert + you need pass for dm_crypt
execute worker runtime_packages
+ #TODO: i should have extra,community,.. (actually even yaourt/aur) available
}
phase_finish ()
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
}