Update menu-dw

This commit is contained in:
RaspbianProyect by HP3ICC 2023-02-15 05:06:42 +00:00
parent 6d2197f645
commit 2b196af300
1 changed files with 18 additions and 1 deletions

View File

@ -12,7 +12,8 @@ choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu Direwolf" --menu "Suba o
7 " Start Direwolf Tracker" \
8 " Start Direwolf Analogo" \
9 " Start Direwolf Analogo + Dashboard" \
10 " Menu Principal " 3>&1 1>&2 2>&3)
10 " Stop All Direwolf" \
11 " Menu Principal " 3>&1 1>&2 2>&3)
exitstatus=$?
#on recupere ce choix
#exitstatus=$?
@ -130,6 +131,22 @@ fi
sudo systemctl enable http.server-dw.service
sudo systemctl enable direwolf.service ;;
10)
if systemctl status http.server-dw.service | grep enable >/dev/null 2>&1
then
sudo systemctl disable http.server-dw.service
fi
sudo systemctl stop http.server-dw.service
if systemctl status direwolf.service | grep enable >/dev/null 2>&1
then
sudo systemctl disable direwolf.service
fi
sudo systemctl stop direwolf.service
if systemctl status gpsd.service | grep enable >/dev/null 2>&1
then
sudo systemctl disable gpsd.service
fi
sudo systemctl stop gpsd.service ;;
11)
break;
esac
done