|
|
|
|
@ -187,7 +187,9 @@ if not GPIO.input(push_button): # if pushbutton is held down during boot
|
|
|
|
|
if web_term_hotspot == "yes":
|
|
|
|
|
subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-p', '8081', 'bash'])
|
|
|
|
|
print("Starting web terminal on port 8081")
|
|
|
|
|
|
|
|
|
|
elif web_term_wifi == "yes":
|
|
|
|
|
subprocess.Popen(['sudo', '-u', 'pi', 'ttyd', '-p', '8081', 'bash'])
|
|
|
|
|
print("Starting web terminal on port 8081")
|
|
|
|
|
GPIO.setup(powerPin, GPIO.OUT)
|
|
|
|
|
GPIO.output(powerPin, 1)
|
|
|
|
|
while (True):
|
|
|
|
|
|