Update svc control init.d w/ systemd

This commit is contained in:
billz 2019-11-15 09:02:37 +00:00
parent 06c00b727b
commit a15ed37adc
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ function DisplayHostAPDConfig()
}
} elseif (isset($_POST['StopHotspot'])) {
$status->addMessage('Attempting to stop hotspot', 'info');
exec('sudo /etc/init.d/hostapd stop', $return);
exec('sudo /bin/systemctl stop hostapd.service', $return);
foreach ($return as $line) {
$status->addMessage($line, 'info');
}