From 94ad1f75d6adbb00cd89dcb75f0b2522730ae933 Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Wed, 6 Mar 2019 20:35:44 +0100 Subject: [PATCH 1/3] Delete servicesstart.sh --- installers/servicesstart.sh | 39 ------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 installers/servicesstart.sh diff --git a/installers/servicesstart.sh b/installers/servicesstart.sh deleted file mode 100644 index 53852fe7..00000000 --- a/installers/servicesstart.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -# When wireless client AP mode is enabled, this script handles starting up network services in a specific order and timing to avoid race conditions. -# Todo: update /etc/rc.local script with /bin/bash /etc/raspap/hostapd/servicesstart.sh to enable at system startup - -echo "Stopping network services..." -systemctl stop hostapd.service -systemctl stop dnsmasq.service -systemctl stop dhcpcd.service - -echo "Removing uap0 interface..." -iw dev uap0 del - -echo "Adding uap0 interface..." -iw dev wlan0 interface add uap0 type __ap - -# Add iptables rules (todo: persist to /etc/rc.local as with default rules) -echo "IPV4 forwarding: setting..." -sysctl net.ipv4.ip_forward=1 -echo "Editing IP tables..." -iptables -t nat -A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE - -# Bring up uap0 interface -ifconfig uap0 up - -# Start services, mitigating race conditions -echo "Starting hostapd service..." -systemctl start hostapd.service -sleep 5 - -echo "Starting dhcpcd service..." -systemctl start dhcpcd.service -sleep 5 - -echo "Starting dnsmasq service..." -systemctl start dnsmasq.service - -echo "servicesstart DONE" - From 667e594984612cd6a6ac88cda90e68514924c612 Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Wed, 6 Mar 2019 20:36:05 +0100 Subject: [PATCH 2/3] Delete hostapdstart.sh --- installers/hostapdstart.sh | 39 -------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 installers/hostapdstart.sh diff --git a/installers/hostapdstart.sh b/installers/hostapdstart.sh deleted file mode 100644 index 70b24498..00000000 --- a/installers/hostapdstart.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -# When wireless client AP mode is enabled, this script handles starting up network services in a specific order and timing to avoid race conditions. -# Todo: update /etc/rc.local script with /bin/bash /usr/local/bin/hostapdstart.sh to enable at system startup - -echo "Stopping network services..." -systemctl stop hostapd.service -systemctl stop dnsmasq.service -systemctl stop dhcpcd.service - -echo "Removing uap0 interface..." -iw dev uap0 del - -echo "Adding uap0 interface..." -iw dev wlan0 interface add uap0 type __ap - -# Add iptables rules (todo: persist to /etc/rc.local as with default rules) -echo "IPV4 forwarding: setting..." -sysctl net.ipv4.ip_forward=1 -echo "Editing IP tables..." -iptables -t nat -A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE - -# Bring up uap0 interface -ifconfig uap0 up - -# Start services, mitigating race conditions -echo "Starting hostapd service..." -systemctl start hostapd.service -sleep 5 - -echo "Starting dhcpcd service..." -systemctl start dhcpcd.service -sleep 5 - -echo "Starting dnsmasq service..." -systemctl start dnsmasq.service - -echo "hostapdstart DONE" - From b851f5d7612913cd5bd26e841f89573482f6f710 Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Wed, 6 Mar 2019 20:36:18 +0100 Subject: [PATCH 3/3] Delete services.sh --- installers/services.sh | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 installers/services.sh diff --git a/installers/services.sh b/installers/services.sh deleted file mode 100644 index a59f154e..00000000 --- a/installers/services.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -# When wireless client AP mode is enabled, the hostapdstart script handles starting up network services -# in a specific order and timing to avoid race conditions. Disabling them here ensures they are not run -# at system startup. - -sudo systemctl stop hostapd -sudo systemctl stop dnsmasq -sudo systemctl stop dhcpcd -sudo systemctl disable hostapd -sudo systemctl disable dnsmasq -sudo systemctl disable dhcpcd \ No newline at end of file