From dd19580e6c9ca786ebe954f3be06182d207bc1c6 Mon Sep 17 00:00:00 2001 From: nagumii Date: Wed, 18 Dec 2024 00:09:02 +0200 Subject: [PATCH] yet another try fix usbconfig --- .../rootfs_uclibc_rv1106/usr/local/bin/updatemeshtastic.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/updatemeshtastic.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/updatemeshtastic.sh index 1fa97d0..68deb12 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/updatemeshtastic.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/updatemeshtastic.sh @@ -5,8 +5,9 @@ attempts=$2 ref="$3: " for retries in $(seq 1 $attempts); do - output=$(meshtastic --host 127.0.0.1 $command >&2) #>&2 lets meshtastic's output display on screen - + output=$(meshtastic --host 127.0.0.1 $command) #>&2 lets meshtastic's output display on screen + echo $output + logger $output if echo "$output" | grep -qiE "Abort|invalid|Error|refused|Errno"; then if [ "$retries" -lt $attempts ]; then msg="${ref:+$ref }Meshtastic update failed, retrying ($(($retries + 1))/$attempts)..."