Update pushbutton.py change port to 8081 to avoid conflict

pull/441/head
Alan Johnston 2 months ago committed by GitHub
parent 16d781610f
commit 2a4f2769b4
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) result = subprocess.run(['nmcli', 'connection', 'show'], capture_output=True, text=True)
print(result, flush=True) print(result, flush=True)
sleep(2) sleep(2)
subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-p', '8080', 'bash']) subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-p', '8081', 'bash'])
GPIO.setup(powerPin, GPIO.OUT) GPIO.setup(powerPin, GPIO.OUT)
GPIO.output(powerPin, 1) GPIO.output(powerPin, 1)

Loading…
Cancel
Save

Powered by TurnKey Linux.