diff options
author | Nicolas Lécureuil <neoclust@mageia.org> | 2023-06-06 18:03:55 +0200 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2023-06-06 18:03:55 +0200 |
commit | cbb16a0b2e8a2e88a97bb6046840686840983d04 (patch) | |
tree | 38a6ae8cb4007a43e6604859f0091ee0245ec86b | |
parent | 8e1c1b104dbb7aef311be76f589455609d699e78 (diff) | |
download | drakx-cbb16a0b2e8a2e88a97bb6046840686840983d04.tar drakx-cbb16a0b2e8a2e88a97bb6046840686840983d04.tar.gz drakx-cbb16a0b2e8a2e88a97bb6046840686840983d04.tar.bz2 drakx-cbb16a0b2e8a2e88a97bb6046840686840983d04.tar.xz drakx-cbb16a0b2e8a2e88a97bb6046840686840983d04.zip |
(drakclock) Set to checked if ntpd is started.
The $mode variable is always set to 0 when starting the drakclock, so
the checkbox was unchecked by default.
Now if the ntpd service is started we check it
-rwxr-xr-x | perl-install/standalone/drakclock | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock index e7234c728..359bc1d2b 100755 --- a/perl-install/standalone/drakclock +++ b/perl-install/standalone/drakclock @@ -61,7 +61,7 @@ my $adjm = Gtk3::Adjustment->new(0.0, 0.0, 59.0, 1.0, 5.0, 0.0); my $adjs = Gtk3::Adjustment->new(0.0, 0.0, 59.0, 1.0, 5.0, 0.0); my ($button_reset, $check_ntp, $hb_ntp, $combo_ntpserver, $ntp); -my $mode = 0; +my $mode = is_ntp_daemon_running(); my (undef, undef, $h_old, $old_day, $old_month, $old_year) = localtime(time()); |