From 2412985801a3c491c63bfbd77d4ba891926acc08 Mon Sep 17 00:00:00 2001 From: nagumii Date: Wed, 4 Dec 2024 17:59:55 +0200 Subject: [PATCH] d'oh! --- .../overlay/overlay-luckfox-ubuntu/etc/rc.local | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 1903705..c1c5963 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 @@ -70,8 +70,8 @@ fi if ! grep -q "^ExecStart=.*--hwid" /usr/lib/systemd/system/meshtasticd.service; then seed=$(printf "%d\n" 0x$(awk '/Serial/ {print $3}' /proc/cpuinfo) | tail -c 10) #seed=$((0x$(awk '/Serial/ {print $3}' /proc/cpuinfo) & 0x3B9AC9FF)) - sed -i "/^ExecStart=/ s:$: --hwid $(seed):" /usr/lib/systemd/system/meshtasticd.service - echo "Using Luckfox CPU S/N to generate nodeid for Meshtastic. Using seed $(seed)." + sed -i "/^ExecStart=/ s:$: --hwid $seed:" /usr/lib/systemd/system/meshtasticd.service + echo "Using Luckfox CPU S/N to generate nodeid for Meshtastic. Using seed $seed." systemctl daemon-reload systemctl enable meshtasticd systemctl start meshtasticd