kopia lustrzana https://github.com/km4ack/pi-build
rodzic
2d62b56746
commit
bd4e29a088
|
@ -45,10 +45,29 @@ HSTOOLS() {
|
||||||
################################
|
################################
|
||||||
GPS() {
|
GPS() {
|
||||||
cd ${DIR} || return
|
cd ${DIR} || return
|
||||||
wget --tries 2 --connect-timeout=60 https://raw.githubusercontent.com/km4ack/pi-scripts/master/gpsinstall
|
|
||||||
chmod +x ${DIR}/gpsinstall
|
#old gpsd install left for reference
|
||||||
sudo ${DIR}/gpsinstall
|
#wget --tries 2 --connect-timeout=60 https://raw.githubusercontent.com/km4ack/pi-scripts/master/gpsinstall
|
||||||
rm ${DIR}/gpsinstall
|
#chmod +x ${DIR}/gpsinstall
|
||||||
|
#sudo ${DIR}/gpsinstall
|
||||||
|
#rm ${DIR}/gpsinstall
|
||||||
|
|
||||||
|
#begin gpsd change 11OCT2021 - see https://github.com/km4ack/pi-build/issues/316
|
||||||
|
sudo apt-get -y install scons libncurses5-dev python-dev pps-tools chrony
|
||||||
|
sudo ldconfig
|
||||||
|
cd $HOME/Downloads
|
||||||
|
wget http://download.savannah.gnu.org/releases/gpsd/gpsd-3.23.1.tar.gz
|
||||||
|
tar -xzf gpsd-3.23.1.tar.gz
|
||||||
|
rm gpsd-3.23.1.tar.gz
|
||||||
|
cd gpsd-3.23.1/
|
||||||
|
scons prefix=/usr --config=force
|
||||||
|
sudo scons udev-install
|
||||||
|
sudo ldconfig
|
||||||
|
sudo wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/gpsd -P /etc/default/
|
||||||
|
sudo rm -rf gpsd-3.23.1/
|
||||||
|
echo "refclock SHM 0 offset 0.5 delay 0.2 refid NMEA" | sudo tee -a /etc/chrony/chrony.conf
|
||||||
|
#end gpsd change 11OCT2021
|
||||||
|
|
||||||
#Set GPS by serial ID
|
#Set GPS by serial ID
|
||||||
#GPS Variable set by main script or update script
|
#GPS Variable set by main script or update script
|
||||||
#and placed in config file
|
#and placed in config file
|
||||||
|
|
Ładowanie…
Reference in New Issue