diff --git a/foxbuntu/config.gz b/foxbuntu/config.gz new file mode 100644 index 0000000..dcd630d Binary files /dev/null and b/foxbuntu/config.gz differ diff --git a/foxbuntu/project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-ubuntu/etc/rc.local b/foxbuntu/project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-ubuntu/etc/rc.local index 671cc72..9839927 100755 --- a/foxbuntu/project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-ubuntu/etc/rc.local +++ b/foxbuntu/project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-ubuntu/etc/rc.local @@ -85,4 +85,4 @@ fi done ) & -exit 0 \ No newline at end of file +exit 0 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 15a6a1e..f9ae5f8 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 @@ -32,6 +32,9 @@ logger "$msg" #/usr/local/bin/updatemeshtastic.sh "--set lora.region US" 10 "First boot" /usr/local/bin/updatemeshtastic.sh "--set network.wifi_enabled true" 10 "First boot" +msg="First boot: Adding rc.local completion condition to Meshtasticd service." +echo "$msg" +logger "$msg" sudo sed -i '/^After=network-online.target/a After=rc-local.service' /usr/lib/systemd/system/meshtasticd.service systemctl daemon-reload 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 978407d..1fa97d0 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 @@ -7,7 +7,7 @@ for retries in $(seq 1 $attempts); do output=$(meshtastic --host 127.0.0.1 $command >&2) #>&2 lets meshtastic's output display on screen - if echo "$output" | grep -qiE "Abort|invalid|Error|refused"; then + 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)..." echo "$msg" @@ -19,4 +19,4 @@ for retries in $(seq 1 $attempts); do break fi done -exit 1 #failed \ No newline at end of file +exit 1 #failed