From c8a41a8f2afdb46e9da3bc9a677210b74b82eaab Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sun, 2 Nov 2008 10:39:46 +0100 Subject: clock stuff in base profile + note added to dieter profile --- src/profiles/profile-automatic-dieter | 1 + src/profiles/profile-base | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit v1.2.3-54-g00ecf