1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

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

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