summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}