From 03853aebe784e67b4d5e2e9d849b2de96d47355e Mon Sep 17 00:00:00 2001 From: nagumii Date: Sat, 14 Dec 2024 18:38:19 +0200 Subject: [PATCH] Update runonce.sh --- .../sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/runonce.sh | 5 +++-- 1 file changed, 3 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 cc8954f..890d593 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 @@ -20,8 +20,9 @@ echo "$msg" logger "$msg" systemctl daemon-reload systemctl enable meshtasticd +systemctl start meshtasticd -# enable wifi in meshtastic settings. Because this is very important, we'll try 5 times. +# enable wifi in meshtastic settings. Because this is very important, we'll try 10 times. msg="First boot: Enabling wifi setting in Meshtasticd." echo "$msg" logger "$msg" @@ -29,7 +30,7 @@ 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 + if [ "$retries" -lt 10 ]; then msg="First boot: Meshtastic update failed, retrying ($(($retries + 1))/10)..." echo "$msg" logger "$msg"