mirror of
https://github.com/femtofox/femtofox.git
synced 2026-10-26 02:49:05 -04:00
Update runonce.sh
This commit is contained in:
parent
58a4346b19
commit
9a78f6242b
1 changed files with 3 additions and 9 deletions
|
|
@ -22,17 +22,8 @@ msg="First boot: Using Luckfox CPU S/N to generate nodeid for Meshtastic."
|
|||
echo "$msg"
|
||||
logger "$msg"
|
||||
systemctl daemon-reload
|
||||
msg="daemon reloaded"
|
||||
echo "$msg"
|
||||
logger "$msg"
|
||||
systemctl enable meshtasticd
|
||||
msg="meshtasticd enabled"
|
||||
echo "$msg"
|
||||
logger "$msg"
|
||||
systemctl start meshtasticd
|
||||
msg="meshtasticd started"
|
||||
echo "$msg"
|
||||
logger "$msg"
|
||||
|
||||
# enable wifi in meshtastic settings. Because this is very important, we'll try 10 times.
|
||||
msg="First boot: Enabling wifi setting in Meshtasticd."
|
||||
|
|
@ -41,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"
|
||||
|
||||
sudo sed -i '/^After=network-online.target/a After=rc-local.service' /usr/lib/systemd/system/meshtasticd.service
|
||||
systemctl daemon-reload
|
||||
|
||||
rm /usr/local/bin/.firstboot
|
||||
msg="First boot: Removing first boot flag and rebooting..."
|
||||
echo "$msg"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue