Mailinglist Archive: opensuse-bugs (10128 mails)

< Previous Next >
[Bug 556467] RC2: ntp module doesn't change time of appliance
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 19 Nov 2009 14:32:43 +0000
  • Message-id: <20091119143243.ABB8FCC7CE@xxxxxxxxxxxxxxxxxxxxxx>
http://bugzilla.novell.com/show_bug.cgi?id=556467

http://bugzilla.novell.com/show_bug.cgi?id=556467#c5


--- Comment #5 from Jiří­ Suchomel <jsuchome@xxxxxxxxxx> 2009-11-19 14:32:40
UTC ---
(In reply to comment #3)

3) properly pass to NTP in which format is hwclock (quite big change as it
affect frontend, ntp backend and also NTP YaPI).
What solution do you prefer?

Why does it affect frontend? I think this is doable only with a change in NTP
YaPI:

(did not tested, but I believe something like this should help:)


diff --git a/plugins/ntp/package/NTP.pm b/plugins/ntp/package/NTP.pm
index a399ae4..6e5771b 100644
--- a/plugins/ntp/package/NTP.pm
+++ b/plugins/ntp/package/NTP.pm
@@ -22,7 +22,9 @@ sub Synchronize {
$out = "Error for server $server: $out";
}
return "NOSERVERS" unless (defined ($out));
- my $ret = `hwclock --utc --systohc`;
+ my $hwclock = SCR->Read (".sysconfig.clock.HWCLOCK");
+ $hwclock = "-u" if ! defined $hwclock;
+ my $ret = `hwclock $hwclock --systohc`;
if ($? == 0){
return "OK";
}

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
< Previous Next >
References