if ($timesettings{'ENABLENTP'} eq 'on' && $timesettings{'VALID'} eq 'yes')
{
- system ('/bin/touch', "${General::swroot}/time/enable");
+ system ('/usr/bin/touch', "${General::swroot}/time/enable");
+ system ('/usr/local/bin/timectrl enable >/dev/null 2>&1');
&General::log($Lang::tr{'ntp syncro enabled'});
unlink "${General::swroot}/time/counter";
if ($timesettings{'UPDATE_METHOD'} eq 'periodically')
}
if ($timesettings{'ENABLECLNTP'} eq 'on') # DPC added to 1.3.1
{
- system ('/bin/touch', "${General::swroot}/time/allowclients"); # DPC added to 1.3.1
+ system ('/usr/bin/touch', "${General::swroot}/time/allowclients"); # DPC added to 1.3.1
&General::log($Lang::tr{'ntpd restarted'}); # DPC added to 1.3.1
} else {
unlink "${General::swroot}/time/allowclients";
unlink "${General::swroot}/time/enable";
unlink "${General::swroot}/time/settimenow";
unlink "${General::swroot}/time/allowclients"; # DPC added to 1.3.1
+ system ('/usr/local/bin/timectrl disable >/dev/null 2>&1');
&General::log($Lang::tr{'ntp syncro disabled'})
}
if (! $errormessage) {
- system ('/usr/local/bin/restartntpd'); # DPC added to 1.3.1
+ system ('/usr/local/bin/timectrl restart >/dev/null 2>&1'); # DPC added to 1.3.1
}
}
$timesettings{'ACTION'} = &Header::cleanhtml ($timesettings{'ACTION'});
if ($timesettings{'ACTION'} eq $Lang::tr{'set time now'} && $timesettings{'ENABLENTP'} eq 'on')
{
- system ('/bin/touch', "${General::swroot}/time/settimenow");
- system ('/usr/local/bin/timecheckctrl >& /dev/null');
+ system ('/usr/bin/touch', "${General::swroot}/time/settimenow");
+ system ('/usr/local/bin/timecheck >& /dev/null');
}
&General::readhash("${General::swroot}/time/settings", \%timesettings);