mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 02:39:57 +00:00
46bd6ca7ba
* Add configuration via /etc/meshtastic/config.yaml * Move example config, support more locations * Fix config check * Use access() to check for config file presence * Throw an error and exit on radio init fail * Adds error check for reading Bluetooth MAC * Settle on meshtasticd, add install script * Shell fixes * Fine. I'll put it back and then disable you * Get wrekt, shellchekt * Firat attempt at adding raspbian CI build * Tickle the workflow * Beatings will continue til morale improves * Permissions are overrated --------- Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
11 lines
345 B
Bash
Executable File
11 lines
345 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cp release/meshtasticd_linux_arm64 /usr/sbin/meshtasticd
|
|
mkdir /etc/meshtasticd
|
|
if [[ -f "/etc/meshtasticd/config.yaml" ]]; then
|
|
cp bin/config-dist.yaml /etc/meshtasticd/config-upgrade.yaml
|
|
else
|
|
cp bin/config-dist.yaml /etc/meshtasticd/config.yaml
|
|
fi
|
|
cp bin/meshtasticd.service /usr/lib/systemd/system/meshtasticd.service
|