diff options
author | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-19 09:57:04 +0000 |
---|---|---|
committer | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-19 09:57:04 +0000 |
commit | 9838584ce378e5a02d604d8431632f4464fd4e5c (patch) | |
tree | be4439a84b2241ec58517221e067bb7f58279422 /time_wizard/scripts/NTPConf.pm | |
parent | 8cdf403a889c4e695abf203d6385ecbb65b55358 (diff) | |
download | drakwizard-9838584ce378e5a02d604d8431632f4464fd4e5c.tar drakwizard-9838584ce378e5a02d604d8431632f4464fd4e5c.tar.gz drakwizard-9838584ce378e5a02d604d8431632f4464fd4e5c.tar.bz2 drakwizard-9838584ce378e5a02d604d8431632f4464fd4e5c.tar.xz drakwizard-9838584ce378e5a02d604d8431632f4464fd4e5c.zip |
fix test while
Diffstat (limited to 'time_wizard/scripts/NTPConf.pm')
-rw-r--r-- | time_wizard/scripts/NTPConf.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/time_wizard/scripts/NTPConf.pm b/time_wizard/scripts/NTPConf.pm index effa87d6..77a5576c 100644 --- a/time_wizard/scripts/NTPConf.pm +++ b/time_wizard/scripts/NTPConf.pm @@ -33,13 +33,21 @@ sub chooser { 2; } +sub chooser4 { + if ($ENV{chooser4} eq "save_quit") { + do_it(); + return 1; + } + 2; +} + sub test { system("/usr/sbin/ntpdate -q $ENV{server1} $ENV{server2}"); if (!($? >> 8)) { do_it(); - return 2; + return 1; } - return 1; + 2; } sub do_it { |