[yast-commit] <rest-service> master : fix writing ntp to hardware clock (use absolute path) (bnc#553980) release 0.0.8
ref: refs/heads/master commit 957fb59647900151c4f25ae47970cc0d90a97476 Author: Josef Reidinger <jreidinger@suse.cz> Date: Fri Nov 20 13:29:00 2009 +0100 fix writing ntp to hardware clock (use absolute path) (bnc#553980) release 0.0.8 --- plugins/ntp/package/NTP.pm | 5 ++++- plugins/ntp/package/yast2-webservice-ntp.changes | 6 ++++++ plugins/ntp/package/yast2-webservice-ntp.spec | 4 +++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/plugins/ntp/package/NTP.pm b/plugins/ntp/package/NTP.pm index a399ae4..e71acea 100644 --- a/plugins/ntp/package/NTP.pm +++ b/plugins/ntp/package/NTP.pm @@ -2,6 +2,7 @@ package YaPI::NTP; use strict; use YaPI; +use YaST::YCP qw(:LOGGING); our %TYPEINFO; @@ -20,9 +21,11 @@ sub Synchronize { $out = `/usr/sbin/sntp -c 1 -d 15 -r -P no '$server' 2>&1`; last if ($?==0); $out = "Error for server $server: $out"; + y2warning($out); } return "NOSERVERS" unless (defined ($out)); - my $ret = `hwclock --utc --systohc`; + my $ret = `/sbin/hwclock --utc --systohc`; + y2milestone("hwclock returns $?: $ret"); if ($? == 0){ return "OK"; } diff --git a/plugins/ntp/package/yast2-webservice-ntp.changes b/plugins/ntp/package/yast2-webservice-ntp.changes index 83066d0..f3da1e1 100644 --- a/plugins/ntp/package/yast2-webservice-ntp.changes +++ b/plugins/ntp/package/yast2-webservice-ntp.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Nov 20 12:29:33 UTC 2009 - jreidinger@novell.com + +- fix writing ntp to hardware clock (use absolute path) (bnc#553980) +- 0.0.8 + +------------------------------------------------------------------- Wed Nov 18 10:45:24 UTC 2009 - jreidinger@novell.com - write time from ntp to hardware clock (bnc#556467) diff --git a/plugins/ntp/package/yast2-webservice-ntp.spec b/plugins/ntp/package/yast2-webservice-ntp.spec index 7a220d4..c1920fe 100644 --- a/plugins/ntp/package/yast2-webservice-ntp.spec +++ b/plugins/ntp/package/yast2-webservice-ntp.spec @@ -14,10 +14,12 @@ Name: yast2-webservice-ntp PreReq: yast2-webservice #for YaPI needs ntp Requires: ntp +#for YaPI hwclock +Requires: util-linux License: GPL v2 only Group: Productivity/Networking/Web/Utilities Autoreqprov: on -Version: 0.0.7 +Version: 0.0.8 Release: 0 Summary: YaST2 - Webservice - NTP Source: www.tar.bz2 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
Josef Reidinger