Update pushbutton.py add modify to wlan0

master-bw
Alan Johnston 2 months ago committed by GitHub
parent 065cb227dd
commit 23454ff978
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -164,6 +164,9 @@ if not GPIO.input(push_button): # if pushbutton is held down during boot
# os.system("sudo nmcli connection down uuid 335c2e13-cab4-40bf-a297-7ff2535ec214") # preconfigured")
# os.system("sudo nmcli device disconnect wlan0")
# os.system("sudo nmcli connection up uuid d437746a-411f-4f02-95ea-7b2f7665d59a") # Hotspot-Manual")
result = subprocess.run(['nmcli', 'connection', 'modify', 'Hotspot-Manual', 'connection.interface-name', 'wlan0'], capture_output=True, text=True)
print(result, flush=True) #.stdout)
result = subprocess.run(['nmcli', 'connection', 'down', 'preconfigured'], capture_output=True, text=True)
print(result, flush=True) #.stdout)
# os.system("sudo nmcli connection up Hotspot-Manual")

Loading…
Cancel
Save

Powered by TurnKey Linux.