Skip to content

Commit

Permalink
hostapd cleanup
Browse files Browse the repository at this point in the history
Remove network interface removal from hsot and set NEWHOSTNAME variable
  • Loading branch information
darkdrgn2k committed Apr 3, 2019
1 parent 8dde9b8 commit 19e64b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/hostapd/install
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ YGG_SUBNET=${YGG_SUBNET:0:-3}
# Install packages to run IEEE 802.11 Access Point
sudo apt-get install hostapd radvd dnsmasq iptables -y

# Configure wlan-ap interface
sudo mv /etc/network/interfaces /etc/network/interfaces.bak

echo "allow-hotplug wlan-ap" | sudo tee --append /etc/network/interfaces.d/wlan-ap > /dev/null
echo "iface wlan-ap inet static" | sudo tee --append /etc/network/interfaces.d/wlan-ap > /dev/null
echo " address 10.0.0.1" | sudo tee --append /etc/network/interfaces.d/wlan-ap > /dev/null
Expand All @@ -48,7 +45,7 @@ sudo sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
sudo sed -i 's/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=1/' /etc/sysctl.conf

# Get network name and password
APSSID=$(sudo grep -m 1 '"ipv6"' /etc/cjdroute.conf | awk '{ print $2 }' | sed 's/[",]//g' | sed "s/.*:/$MESH_NAME-/g")
APSSID=${NEWHOSTNAME}

# Select wpa-eap or wpa-psk
read -p "Use WPA-EAP (Y) or WPA2-PSK (n) for WiFi Access Point $APSSID? " -n 1 -r
Expand Down

0 comments on commit 19e64b0

Please sign in to comment.