initial commit of file from CVS for e-smith-ntp on Wed 12 Jul 09:00:21 BST 2023

This commit is contained in:
Brian Read
2023-07-12 09:00:21 +01:00
parent 59f5643b62
commit 4d143a42fe
37 changed files with 3230 additions and 2 deletions

View File

@@ -0,0 +1 @@
smeserver.pool.ntp.org

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1,7 @@
{
my $ntpd = $DB->get('ntpd');
return unless $ntpd;
return if $ntpd->prop('SyncToHWClockSupported');
$ntpd->set_prop('status', 'enabled') unless ($ntpd->prop('status') || 'disabled') eq 'enabled';
}

View File

@@ -0,0 +1,8 @@
{
my $pool = $DB->get_prop('ntpd', 'NTPServer');
return unless defined $pool;
if ($pool eq 'pool.ntp.org')
{
$DB->set_prop('ntpd', 'NTPServer', 'smeserver.pool.ntp.org')
}
}