Update pushbutton.py add ttyd port 8080

pull/441/head
Alan Johnston 2 months ago committed by GitHub
parent 2591f9aa6f
commit 1336bcb751
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -149,7 +149,10 @@ if not GPIO.input(push_button): # if pushbutton is held down during boot
sleep(1)
result = subprocess.run(['nmcli', 'connection', 'show'], capture_output=True, text=True)
print(result, flush=True)
sleep(2)
sleep(2)
result = subprocess.run(['ttyd', '-p', '8080', 'bash', '&'], capture_output=True, text=True)
print(result, flush=True)
GPIO.setup(powerPin, GPIO.OUT)
GPIO.output(powerPin, 1)
while (True):

Loading…
Cancel
Save

Powered by TurnKey Linux.