From 996e2274c06da59c23934b251dcfa6e5fc7d1dbd Mon Sep 17 00:00:00 2001 From: nagumii Date: Sat, 14 Dec 2024 18:28:40 +0200 Subject: [PATCH] Update runonce.sh --- .../sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/runonce.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/runonce.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/runonce.sh index bd517de..cc8954f 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/runonce.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/runonce.sh @@ -25,12 +25,12 @@ systemctl enable meshtasticd msg="First boot: Enabling wifi setting in Meshtasticd." echo "$msg" logger "$msg" -for retries in $(seq 1 5); do +for retries in $(seq 1 10); do output=$(meshtastic --host --set network.wifi_enabled true 2>&1) echo "$output" if echo "$output" | grep -qiE "Abort|invalid|Error"; then if [ "$retries" -lt 3 ]; then - msg="First boot: Meshtastic update failed, retrying ($(($retries + 1))/5)..." + msg="First boot: Meshtastic update failed, retrying ($(($retries + 1))/10)..." echo "$msg" logger "$msg" sleep 2 # Add a small delay before retrying