mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update direwolf.sh
This commit is contained in:
parent
4f09aa96d7
commit
5fdeb1b88c
|
|
@ -60,29 +60,29 @@ GPSD_OPTIONS="-n"
|
|||
GPSD_SOCKET="/var/run/gpsd.sock"
|
||||
|
||||
EOF
|
||||
sudo ln -sf /lib/systemd/system/gpsd.service /etc/systemd/system/multi-user.target.wants/
|
||||
|
||||
sudo systemctl stop gpsd
|
||||
cat > /lib/systemd/system/gpsd.service <<- "EOFG"
|
||||
[Unit]
|
||||
Description=GPS (Global Positioning System) Daemon
|
||||
Requires=gpsd.socket
|
||||
After=chronyd.service
|
||||
#cat > /lib/systemd/system/gpsd.service <<- "EOFG"
|
||||
#[Unit]
|
||||
#Description=GPS (Global Positioning System) Daemon
|
||||
#Requires=gpsd.socket
|
||||
#After=chronyd.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=-/etc/default/gpsd
|
||||
ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
#[Service]
|
||||
#Type=forking
|
||||
#EnvironmentFile=-/etc/default/gpsd
|
||||
#ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES
|
||||
#Restart=on-failure
|
||||
#RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Also=gpsd.socket
|
||||
#[Install]
|
||||
#WantedBy=multi-user.target
|
||||
#lso=gpsd.socket
|
||||
|
||||
|
||||
EOFG
|
||||
#EOFG
|
||||
sudo systemctl daemon-reload
|
||||
sudo ln -sf /lib/systemd/system/gpsd.service /etc/systemd/system/multi-user.target.wants/
|
||||
#sudo systemctl start gpsd
|
||||
#archivo="/etc/ntp.conf"
|
||||
#palabra=("server 127.127.28.0 4" "fudge 127.127.28.0 time1 0.340 refid GPS" "server 127.127.28.1 prefer" "fudge 127.127.28.1 refid GPS1")
|
||||
|
|
|
|||
Loading…
Reference in New Issue