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:
parent
06c00b727b
commit
a15ed37adc
@ -35,7 +35,7 @@ function DisplayHostAPDConfig()
|
|||||||
}
|
}
|
||||||
} elseif (isset($_POST['StopHotspot'])) {
|
} elseif (isset($_POST['StopHotspot'])) {
|
||||||
$status->addMessage('Attempting to stop hotspot', 'info');
|
$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) {
|
foreach ($return as $line) {
|
||||||
$status->addMessage($line, 'info');
|
$status->addMessage($line, 'info');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user