mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Update svc control init.d w/ systemd
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user