From bdc5958c4ffa879a5a94ae353591edec857975a5 Mon Sep 17 00:00:00 2001 From: billz Date: Thu, 7 Mar 2019 22:14:27 +0000 Subject: [PATCH] Cleanup, typo fix --- installers/servicestart.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/installers/servicestart.sh b/installers/servicestart.sh index 50b6a828..9182ff15 100755 --- a/installers/servicestart.sh +++ b/installers/servicestart.sh @@ -31,18 +31,15 @@ systemctl stop hostapd.service systemctl stop dnsmasq.service systemctl stop dhcpcd.service -if [ "${interface}" = "uap0" ]; then - echo "Removing uap0 interface..." - iw dev uap0 del +echo "Removing uap0 interface..." +iw dev uap0 del +if [ "${interface}" = "uap0" ]; then echo "Adding uap0 interface..." iw dev wlan0 interface add uap0 type __ap # Bring up uap0 interface ifconfig uap0 up -else - echo "Removing uap0 interface..." - iw dev uap0 del fi # Start services, mitigating race conditions @@ -57,5 +54,5 @@ sleep "${seconds}" echo "Starting dnsmasq service..." systemctl start dnsmasq.service -echo "RaspAP servicestart DONE" +echo "RaspAP service start DONE"