initial commit of file from CVS for e-smith-ntp on Wed 12 Jul 09:00:21 BST 2023
This commit is contained in:
@@ -0,0 +1 @@
|
||||
smeserver.pool.ntp.org
|
@@ -0,0 +1 @@
|
||||
yes
|
1
root/etc/e-smith/db/configuration/defaults/ntpd/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/ntpd/status
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/ntpd/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/ntpd/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
@@ -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';
|
||||
}
|
8
root/etc/e-smith/db/configuration/migrate/30pool
Normal file
8
root/etc/e-smith/db/configuration/migrate/30pool
Normal 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')
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user