summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--time_wizard/Ntp.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/time_wizard/Ntp.pm b/time_wizard/Ntp.pm
index f2cd178f..ff1d161f 100644
--- a/time_wizard/Ntp.pm
+++ b/time_wizard/Ntp.pm
@@ -27,6 +27,7 @@ use strict;
use common;
use services;
use MDK::Wizard::Wizcommon;
+use MDK::Wizard::Wizcommon_gtk2;
use timezone;
my $wiz = new MDK::Wizard::Wizcommon;
@@ -176,7 +177,7 @@ sub test {
return 'end';
}
my $command = "/usr/sbin/ntpdate -q $o->{var}{varserver1}"; # $o->{var}{varserver2}";
- my $o = wizard_progress_bar($command, "Test NTP server Responding...");
+ my $o = MDK::Wizard::Wizcommon_gtk2::wizard_progress_bar($command, "Test NTP server Responding...");
$o;
# system("/usr/sbin/ntpdate -q $o->{var}{varserver1} $o->{var}{varserver2}");
if (!($? >> 8)) {
@@ -209,7 +210,7 @@ sub do_it {
substInFile { s/(# server clock.via.net)/$1\nserver $o->{var}{varserver1}/ } '/etc/ntp.conf' if -f '/etc/ntp.conf';
standalone::explanations("Wrote /etc/ntp/step-tickers, starting services");
my $command = "service crond stop; service atd stop; service ntpd stop; service ntpd start; service atd start; service crond start; /sbin/hwclock --systohc --utc";
- wizard_progress_bar($command, "Configuring NTP, ATD and CROND services...");
+ MDK::Wizard::Wizcommon_gtk2::wizard_progress_bar($command, "Configuring NTP, ATD and CROND services...");
}
1;