From 76c7e84d67ce8731bb9d6ebc646176ae43461c3e Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Mon, 1 Oct 2007 12:22:27 -0600 Subject: [PATCH] fix messages in "hwclock.sh start". Closes: #436873 Signed-off-by: LaMont Jones --- debian/hwclock.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/debian/hwclock.sh b/debian/hwclock.sh index 241ec027..f3ea0589 100644 --- a/debian/hwclock.sh +++ b/debian/hwclock.sh @@ -100,15 +100,17 @@ hwclocksh() fi if [ "$HWCLOCKACCESS" != no ]; then - log_action_msg "Setting the system clock." + log_action_msg "Setting the system clock" # Copies Hardware Clock time to System Clock using the correct # timezone for hardware clocks in local time, and sets kernel # timezone. DO NOT REMOVE. - /sbin/hwclock --hctosys $GMT $HWCLOCKPARS $BADYEAR $NOADJ - - # Announce the local time. - verbose_log_action_msg "System Clock set to: `date $UTC`" + if /sbin/hwclock --hctosys $GMT $HWCLOCKPARS $BADYEAR $NOADJ; then + # Announce the local time. + verbose_log_action_msg "System Clock set to: `date $UTC`" + else + log_warning_msg "Unable to set System Clock to: `date $UTC`" + fi else verbose_log_action_msg "Not setting System Clock" fi @@ -122,7 +124,7 @@ hwclocksh() # clock will not be carried across reboots. # if [ "$HWCLOCKACCESS" != no ]; then - log_action_msg "Saving the system clock." + log_action_msg "Saving the system clock" if [ "$GMT" = "-u" ]; then GMT="--utc" fi -- 2.39.5