diff options
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 { |