mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-01 18:29:56 +00:00
3cf6c47bab
From the manpage: > arch - print machine hardware name (same as uname -m) Arch Linux does not have the `arch` alias, only `uname`, so use `uname` to fix this issue: > ``` > ./bin/build-native.sh: line 18: arch: command not found > ``` Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
11 lines
353 B
Bash
Executable File
11 lines
353 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cp "release/meshtasticd_linux_$(uname -m)" /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
|