X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;ds=sidebyside;f=html%2Fcgi-bin%2Ftime.cgi;fp=html%2Fcgi-bin%2Ftime.cgi;h=689f988c81bead7ec087933eb35a934a8a047124;hb=535628499c29897f4324ad033d357901f6f4101c;hp=7fef11f468a9f74f392fe8f73f022928491da406;hpb=0a58fbcb92a5129f337d9dea5ea221ac19db09a0;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/html/cgi-bin/time.cgi b/html/cgi-bin/time.cgi index 7fef11f46..689f988c8 100644 --- a/html/cgi-bin/time.cgi +++ b/html/cgi-bin/time.cgi @@ -124,6 +124,7 @@ ERROR: if ($timesettings{'ENABLENTP'} eq 'on' && $timesettings{'VALID'} eq 'yes') { 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') @@ -147,10 +148,11 @@ ERROR: 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 } } @@ -160,7 +162,7 @@ $timesettings{'ACTION'} = &Header::cleanhtml ($timesettings{'ACTION'}); if ($timesettings{'ACTION'} eq $Lang::tr{'set time now'} && $timesettings{'ENABLENTP'} eq 'on') { system ('/usr/bin/touch', "${General::swroot}/time/settimenow"); - system ('/usr/local/bin/timecheckctrl >& /dev/null'); + system ('/usr/local/bin/timecheck >& /dev/null'); } &General::readhash("${General::swroot}/time/settings", \%timesettings);