From cbb16a0b2e8a2e88a97bb6046840686840983d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Tue, 6 Jun 2023 18:03:55 +0200 Subject: (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 --- perl-install/standalone/drakclock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/standalone') 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()); -- cgit v1.2.1