You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: menu.sh
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -252,6 +252,20 @@ function do_env_setup() {
252
252
fi
253
253
}
254
254
255
+
functiondo_ttyUSB0_checks() {
256
+
[ -e /dev/ttyUSB0 ] &&return
257
+
echo"/dev/ttyUSB0 not created, needed for esphome">&2
258
+
[ -f .ttyusb0_notcreated ] &&return
259
+
260
+
if (whiptail --title "/dev/ttyUSB0" --yesno "/dev/ttyUSB0 not created, and is required to run ESPHome.\nWould you like to create it now?\n\nYou will not be prompted again." 20 78);then
261
+
echo"Creating static /dev/ttyUSB0 device for ESPHome"
0 commit comments