summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakclock
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 17:36:18 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 17:36:37 +0100
commit9f610b4bf578c2600c094a9d0e91f1f2d39c74d8 (patch)
treec13dc4c249d282dbf6eeb5df462c61ca22fa32bc /perl-install/standalone/drakclock
parent1aec107f40a116a509d792519627e8bfd432cc87 (diff)
downloaddrakx-9f610b4bf578c2600c094a9d0e91f1f2d39c74d8.tar
drakx-9f610b4bf578c2600c094a9d0e91f1f2d39c74d8.tar.gz
drakx-9f610b4bf578c2600c094a9d0e91f1f2d39c74d8.tar.bz2
drakx-9f610b4bf578c2600c094a9d0e91f1f2d39c74d8.tar.xz
drakx-9f610b4bf578c2600c094a9d0e91f1f2d39c74d8.zip
perl_checker cleanups
Diffstat (limited to 'perl-install/standalone/drakclock')
-rwxr-xr-xperl-install/standalone/drakclock4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock
index 0c8cc47ee..7b64ed508 100755
--- a/perl-install/standalone/drakclock
+++ b/perl-install/standalone/drakclock
@@ -126,10 +126,10 @@ $my_win->{window}->add(
system('systemctl', 'start', "$ntpd.service");
# Wait up to 30s for sync
$sync_ok = !system('chronyc', 'waitsync', '30', '0.1');
- system('systemctl', 'stop', "$ntpd.service") if (!$sync_ok);
+ system('systemctl', 'stop', "$ntpd.service") if !$sync_ok;
} else {
$sync_ok = !system('/usr/sbin/ntpdate', $choosed_serv);
- system('systemctl', 'start', "$ntpd.service") if ($sync_ok);
+ system('systemctl', 'start', "$ntpd.service") if $sync_ok;
}
if ($sync_ok) {
update_time(); #- get the new time before updating the hwclock