Commit 91232547 authored by Pete Tucker's avatar Pete Tucker
Browse files

Merge branch 'feature/hostapd-name' into 'master'

ES-324 Create custom ssid for Wireless Access Point

See merge request !6
parents bfc729e1 b70a69c3
......@@ -177,7 +177,7 @@ def changeName(newName):
print "New name contains whitespaces. Ignoring"
......@@ -188,9 +188,10 @@ def _changeHostName(newName):"hostname -F /etc/hostname", shell=True)
def _changeAPSSID(newName):
#saveDefaultSSID()["sed", "-i", "s/^ssid=.*/ssid=" + re.escape(newName) + "/", "/etc/hostapd.conf"])"/etc/init.d/avahi-daemon restart && sleep 2", shell=True)"/etc/init.d/avahi-daemon restart && sleep 2", shell=True)
def _changeP2PSSID(newName):["sed", "-i", "s/^p2p_ssid_postfix=.*/p2p_ssid_postfix=" + re.escape(newName) + "/", "/etc/wpa_supplicant/p2p_supplicant.conf"])
......@@ -647,6 +648,11 @@ def getDefaultSSID():
def enableOneTimeSetup(persist):"/usr/rigado/scripts/ green flash", shell=True)
#create unique ssid for Wireless Access Point
hostname = subprocess.check_output('hostname').strip()
print "Scanning and saving WiFi networks..."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment