From a72927766767c019b0c85eb51256519eb10b3b3b Mon Sep 17 00:00:00 2001 From: nagumii Date: Wed, 18 Dec 2024 20:49:22 +0200 Subject: [PATCH] Bring back an accidentally deleted line in runonce.sh --- .../sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/runonce.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 d6b378b..b924d01 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 @@ -16,7 +16,8 @@ EOF # set meshtastic nodeid to derivative of CPU serial number (unique to this board). Check at boot in case of upgrade overwriting this. seed=$(printf "%d\n" 0x$(awk '/Serial/ {print $3}' /proc/cpuinfo) | tail -c 9) -#seed=$((0x$(awk '/Serial/ {print $3}' /proc/cpuinfo) & 0x3B9AC9FF)) +#seed=$((0x$(awk '/Serial/ {print $3}' /proc/cpuinfo) & 0x3B9AC9FF)) #alternate method for generating seed - not in use +sed -i "/^ExecStart=/ s:$: -h $seed:" /usr/lib/systemd/system/meshtasticd.service msg="First boot: Using Luckfox CPU S/N to generate nodeid for Meshtastic." echo "$msg" logger "$msg"