From ef0b0aa4bad63dc8ad35e09c738c882a079a70b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 15 Dec 2017 04:25:28 +0100 Subject: [PATCH] Add mass-updater script. --- packages/usb/update-loop-getkey.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 packages/usb/update-loop-getkey.sh 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