From 6394a10a18da669b9054244293d19902de037892 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 31 Dec 2014 11:32:14 +0100 Subject: core-services/02-console-setup.sh: setup HARDWARECLOCK if set. This was lost somehow after adding "core-services". --- core-services/02-console-setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core-services') diff --git a/core-services/02-console-setup.sh b/core-services/02-console-setup.sh index 4077f48..5769f61 100644 --- a/core-services/02-console-setup.sh +++ b/core-services/02-console-setup.sh @@ -13,3 +13,9 @@ if [ -n "$KEYMAP" ]; then msg "Setting up keymap to '${KEYMAP}'...\n" loadkeys -q -u ${KEYMAP} fi + +if [ -n "$HARDWARECLOCK" ]; then + msg "Setting up RTC to '${HARDWARECLOCK}'...\n" + TZ=$TIMEZONE hwclock --systz \ + ${HARDWARECLOCK:+--$(echo $HARDWARECLOCK |tr A-Z a-z) --noadjfile} || emergency_shell +fi -- cgit 1.4.1