mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Cleanup, typo fix
This commit is contained in:
parent
6cf96fd65d
commit
bdc5958c4f
@ -31,18 +31,15 @@ systemctl stop hostapd.service
|
|||||||
systemctl stop dnsmasq.service
|
systemctl stop dnsmasq.service
|
||||||
systemctl stop dhcpcd.service
|
systemctl stop dhcpcd.service
|
||||||
|
|
||||||
if [ "${interface}" = "uap0" ]; then
|
echo "Removing uap0 interface..."
|
||||||
echo "Removing uap0 interface..."
|
iw dev uap0 del
|
||||||
iw dev uap0 del
|
|
||||||
|
|
||||||
|
if [ "${interface}" = "uap0" ]; then
|
||||||
echo "Adding uap0 interface..."
|
echo "Adding uap0 interface..."
|
||||||
iw dev wlan0 interface add uap0 type __ap
|
iw dev wlan0 interface add uap0 type __ap
|
||||||
|
|
||||||
# Bring up uap0 interface
|
# Bring up uap0 interface
|
||||||
ifconfig uap0 up
|
ifconfig uap0 up
|
||||||
else
|
|
||||||
echo "Removing uap0 interface..."
|
|
||||||
iw dev uap0 del
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start services, mitigating race conditions
|
# Start services, mitigating race conditions
|
||||||
@ -57,5 +54,5 @@ sleep "${seconds}"
|
|||||||
echo "Starting dnsmasq service..."
|
echo "Starting dnsmasq service..."
|
||||||
systemctl start dnsmasq.service
|
systemctl start dnsmasq.service
|
||||||
|
|
||||||
echo "RaspAP servicestart DONE"
|
echo "RaspAP service start DONE"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user