From bc3fd9ec99c2bbed16646a4a03247e81fffa8d60 Mon Sep 17 00:00:00 2001 From: nagumii Date: Tue, 3 Dec 2024 22:18:32 +0200 Subject: [PATCH] Update rc.local --- .../overlay/overlay-luckfox-ubuntu/etc/rc.local | 3 +-- 1 file changed, 1 insertion(+), 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 1a61e17..8369a34 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 @@ -18,9 +18,8 @@ fi if ! grep -q "^ExecStart=.*--hwid" /usr/lib/systemd/system/meshtasticd.service; then sed -i "/^ExecStart=/ s:$: --hwid $((0x$(awk '/Serial/ {print $3}' /proc/cpuinfo) & 0xFFFFFFFF)):" /usr/lib/systemd/system/meshtasticd.service echo "Used Luckfox CPU S/N to generate unique nodeid seed for Meshtastic." - systemctl stop meshtasticd systemctl daemon-reload - systemctl start meshtasticd + systemctl restart meshtasticd fi