smeserver-ntp/root/etc/e-smith/db/configuration/migrate/30NTPRunDisconnected

8 lines
216 B
Plaintext

{
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';
}