From 1aa4b793424a8beab87837ba056292ffcdec75b4 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Tue, 6 Sep 2005 22:33:30 +0000 Subject: fix bug 18193 (pb with progressbar) --- time_wizard/Ntp.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'time_wizard/Ntp.pm') 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; -- cgit v1.2.1