mirror of
https://github.com/femtofox/femtofox.git
synced 2026-12-01 04:17:05 -05:00
d'oh!
This commit is contained in:
parent
3b05f3c10c
commit
2412985801
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue