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:
parent
06c00b727b
commit
a15ed37adc
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user