diff --git a/pushbutton.py b/pushbutton.py index 1ef7688e..80ae21e4 100644 --- a/pushbutton.py +++ b/pushbutton.py @@ -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):