Update menu-dw

This commit is contained in:
RaspbianProyect by HP3ICC 2023-02-15 05:13:44 +00:00
parent bf475416f9
commit ee2aaa2c4b
1 changed files with 20 additions and 17 deletions

View File

@ -5,15 +5,16 @@ while : ; do
choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu Direwolf" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 20 55 11 \ choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu Direwolf" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 20 55 11 \
1 " Edit Direwolf Analogo " \ 1 " Edit Direwolf Analogo " \
2 " Edit Direwolf SDR-RTL " \ 2 " Edit Direwolf SDR-RTL " \
3 " Edit Direwolf Tracker " \ 3 " Edit Frecuency SDR-RTL " \
4 " Edit Dashboard " \ 4 " Edit Direwolf Tracker " \
5 " Edit port http Dashbord " \ 5 " Edit Dashboard " \
6 " Start Direwolf SDR-RTL" \ 6 " Edit port http Dashbord " \
7 " Start Direwolf Tracker" \ 7 " Start Direwolf SDR-RTL" \
8 " Start Direwolf Analogo" \ 8 " Start Direwolf Tracker" \
9 " Start Direwolf Analogo + Dashboard" \ 9 " Start Direwolf Analogo" \
10 " Stop All Direwolf" \ 10 " Start Direwolf Analogo + Dashboard" \
11 " Menu Principal " 3>&1 1>&2 2>&3) 11 " Stop All Direwolf" \
12 " Menu Principal " 3>&1 1>&2 2>&3)
exitstatus=$? exitstatus=$?
#on recupere ce choix #on recupere ce choix
#exitstatus=$? #exitstatus=$?
@ -29,16 +30,18 @@ sudo nano /opt/direwolf/dw.conf;;
2) 2)
sudo nano /opt/direwolf/sdr.conf;; sudo nano /opt/direwolf/sdr.conf;;
3) 3)
sudo nano /opt/direwolf/gpsd.conf;; sudo nano /opt/direwolf/rtl.sh
4) 4)
sudo nano /opt/direwolf_webstat/config.php;; sudo nano /opt/direwolf/gpsd.conf;;
5) 5)
sudo nano /opt/direwolf_webstat/config.php;;
6)
sudo nano /lib/systemd/system/http.server-dw.service && sudo systemctl daemon-reload && sudo nano /lib/systemd/system/http.server-dw.service && sudo systemctl daemon-reload &&
if systemctl status http.server-dw.service |grep running >/dev/null 2>&1 if systemctl status http.server-dw.service |grep running >/dev/null 2>&1
then then
sudo systemctl restart http.server-dw.service sudo systemctl restart http.server-dw.service
fi ;; fi ;;
6) 7)
sudo systemctl stop direwolf.service sudo systemctl stop direwolf.service
sudo systemctl stop http.server-dw.service sudo systemctl stop http.server-dw.service
sudo systemctl stop gpsd.service sudo systemctl stop gpsd.service
@ -62,7 +65,7 @@ fi
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl start direwolf.service sudo systemctl start direwolf.service
sudo systemctl enable direwolf.service ;; sudo systemctl enable direwolf.service ;;
7) 8)
sudo systemctl stop direwolf.service sudo systemctl stop direwolf.service
sudo systemctl stop http.server-dw.service sudo systemctl stop http.server-dw.service
sudo systemctl stop gpsd.service sudo systemctl stop gpsd.service
@ -84,7 +87,7 @@ fi
sudo systemctl enable gpsd.service sudo systemctl enable gpsd.service
sudo systemctl start direwolf.service sudo systemctl start direwolf.service
sudo systemctl enable direwolf.service ;; sudo systemctl enable direwolf.service ;;
8) 9)
sudo systemctl stop direwolf.service sudo systemctl stop direwolf.service
sudo systemctl stop http.server-dw.service sudo systemctl stop http.server-dw.service
sudo systemctl stop gpsd.service sudo systemctl stop gpsd.service
@ -108,7 +111,7 @@ fi
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl start direwolf.service sudo systemctl start direwolf.service
sudo systemctl enable direwolf.service ;; sudo systemctl enable direwolf.service ;;
9) 10)
sudo systemctl stop direwolf.service sudo systemctl stop direwolf.service
sudo systemctl stop http.server-dw.service sudo systemctl stop http.server-dw.service
sudo systemctl stop gpsd.service sudo systemctl stop gpsd.service
@ -130,7 +133,7 @@ fi
sudo systemctl start http.server-dw.service sudo systemctl start http.server-dw.service
sudo systemctl enable http.server-dw.service sudo systemctl enable http.server-dw.service
sudo systemctl enable direwolf.service ;; sudo systemctl enable direwolf.service ;;
10) 11)
if systemctl status http.server-dw.service | grep enable >/dev/null 2>&1 if systemctl status http.server-dw.service | grep enable >/dev/null 2>&1
then then
sudo systemctl disable http.server-dw.service sudo systemctl disable http.server-dw.service
@ -146,7 +149,7 @@ then
sudo systemctl disable gpsd.service sudo systemctl disable gpsd.service
fi fi
sudo systemctl stop gpsd.service ;; sudo systemctl stop gpsd.service ;;
11) 12)
break; break;
esac esac
done done