diff --git a/packages/usb/update-loop-getkey.sh b/packages/usb/update-loop-getkey.sh new file mode 100755 index 00000000..c259b342 --- /dev/null +++ b/packages/usb/update-loop-getkey.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +firmwarePath=$1 + +while true; do + read -n 1 char + if [[ $char == "a" ]]; then + ./flash update-firmwares-and-configs.js "$firmwarePath" ansi + elif [[ $char == "i" ]]; then + ./flash update-firmwares-and-configs.js "$firmwarePath" iso + fi +done