Update pushbutton.py fix tabs

pull/441/head
Alan Johnston 2 months ago committed by GitHub
parent 1478f3b48b
commit 841adf1e0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save

Powered by TurnKey Linux.