mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update menu-dw
This commit is contained in:
parent
b24290e8b9
commit
6d2197f645
26
menu/menu-dw
26
menu/menu-dw
|
|
@ -40,7 +40,12 @@ fi ;;
|
|||
6)
|
||||
sudo systemctl stop direwolf.service
|
||||
sudo systemctl stop http.server-dw.service
|
||||
if systemctl status http.server-dw.service |grep enable >/dev/null 2>&1
|
||||
sudo systemctl stop gpsd.service
|
||||
if systemctl status gpsd.service | grep enable >/dev/null 2>&1
|
||||
then
|
||||
sudo systemctl disable gpsd.service
|
||||
fi
|
||||
if systemctl status http.server-dw.service | grep enable >/dev/null 2>&1
|
||||
then
|
||||
sudo systemctl disable http.server-dw.service
|
||||
fi
|
||||
|
|
@ -59,7 +64,8 @@ fi
|
|||
7)
|
||||
sudo systemctl stop direwolf.service
|
||||
sudo systemctl stop http.server-dw.service
|
||||
if systemctl status http.server-dw.service |grep enable >/dev/null 2>&1
|
||||
sudo systemctl stop gpsd.service
|
||||
if systemctl status http.server-dw.service | grep enable >/dev/null 2>&1
|
||||
then
|
||||
sudo systemctl disable http.server-dw.service
|
||||
fi
|
||||
|
|
@ -73,12 +79,19 @@ else
|
|||
fi
|
||||
sudo sed -i "s/ExecStart=.*/ExecStart=\/usr\/local\/bin\/direwolf -c \/opt\/direwolf\/gpsd.conf/" /lib/systemd/system/direwolf.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl start gpsd.service
|
||||
sudo systemctl enable gpsd.service
|
||||
sudo systemctl start direwolf.service
|
||||
sudo systemctl enable direwolf.service ;;
|
||||
8)
|
||||
sudo systemctl stop direwolf.service
|
||||
sudo systemctl stop http.server-dw.service
|
||||
if systemctl status http.server-dw.service |grep enable >/dev/null 2>&1
|
||||
sudo systemctl stop gpsd.service
|
||||
if systemctl status gpsd.service | grep enable >/dev/null 2>&1
|
||||
then
|
||||
sudo systemctl disable gpsd.service
|
||||
fi
|
||||
if systemctl status http.server-dw.service | grep enable >/dev/null 2>&1
|
||||
then
|
||||
sudo systemctl disable http.server-dw.service
|
||||
fi
|
||||
|
|
@ -96,7 +109,12 @@ fi
|
|||
sudo systemctl enable direwolf.service ;;
|
||||
9)
|
||||
sudo systemctl stop direwolf.service
|
||||
sudo systemctl stop http.server-dw.service
|
||||
sudo systemctl stop http.server-dw.service
|
||||
sudo systemctl stop gpsd.service
|
||||
if systemctl status gpsd.service | grep enable >/dev/null 2>&1
|
||||
then
|
||||
sudo systemctl disable gpsd.service
|
||||
fi
|
||||
if [ "$(cat /proc/cpuinfo | grep 'Zero')" != "" ]; then
|
||||
|
||||
sudo cp /opt/direwolf/direwolf1 /usr/local/bin/direwolf
|
||||
|
|
|
|||
Loading…
Reference in New Issue