mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
18 lines
428 B
Bash
18 lines
428 B
Bash
|
|
#!/bin/bash
|
||
|
|
#
|
||
|
|
# Author : Gaston Gonzalez
|
||
|
|
# Date : 1 October 2022
|
||
|
|
# Purpose : Configure GPS
|
||
|
|
set -e
|
||
|
|
|
||
|
|
et-log "Installing GPS packages and dependencies..."
|
||
|
|
apt install gpsd gpsd-clients at -y
|
||
|
|
|
||
|
|
et-log "Installing gpsd config..."
|
||
|
|
cp ../overlay/etc/default/gpsd /etc/default/
|
||
|
|
|
||
|
|
et-log "Updating gpsd systemd script..."
|
||
|
|
cp ../overlay/lib/systemd/system/gpsd.service /lib/systemd/system/
|
||
|
|
systemctl daemon-reload
|
||
|
|
systemctl enable gpsd
|