mirror of https://gitlab.com/hp3icc/shell-aprs.git
Update menu.sh
This commit is contained in:
parent
ea68e08c01
commit
d8c60c61ec
35
menu.sh
35
menu.sh
|
|
@ -5,13 +5,16 @@ choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu Shell-APRS" --menu "Suba
|
||||||
1 " Editar Beacon-1 " \
|
1 " Editar Beacon-1 " \
|
||||||
2 " Editar Beacon-2 " \
|
2 " Editar Beacon-2 " \
|
||||||
3 " Editar Beacon-3 " \
|
3 " Editar Beacon-3 " \
|
||||||
4 " Start/Restart Beacon-1 " \
|
4 " Editar Beacon-4 " \
|
||||||
5 " Start/Restart Beacon-2 " \
|
5 " Start/Restart Beacon-1 " \
|
||||||
6 " Start/Restart Beacon-3 " \
|
6 " Start/Restart Beacon-2 " \
|
||||||
7 " Stop Beacon-1 " \
|
7 " Start/Restart Beacon-3 " \
|
||||||
8 " Stop Beacon-2 " \
|
8 " Start/Restart Beacon-4 " \
|
||||||
9 " Stop Beacon-3 " \
|
9 " Stop Beacon-1 " \
|
||||||
10 " Menu Principal " 3>&1 1>&2 2>&3)
|
10 " Stop Beacon-2 " \
|
||||||
|
11 " Stop Beacon-3 " \
|
||||||
|
12 " Stop Beacon-4 " \
|
||||||
|
13 " Menu Principal " 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
#on recupere ce choix
|
#on recupere ce choix
|
||||||
#exitstatus=$?
|
#exitstatus=$?
|
||||||
|
|
@ -29,18 +32,24 @@ sudo nano /opt/shell-aprs/bcom2.sh ;;
|
||||||
3)
|
3)
|
||||||
sudo nano /opt/shell-aprs/bcom3.sh ;;
|
sudo nano /opt/shell-aprs/bcom3.sh ;;
|
||||||
4)
|
4)
|
||||||
sudo systemctl stop aprsb1.service && sudo systemctl start aprsb1.service && sudo systemctl enable aprsb1.service ;;
|
sudo nano /opt/shell-aprs/bcom4.sh ;;
|
||||||
5)
|
5)
|
||||||
sudo systemctl stop aprsb2.service && sudo systemctl start aprsb2.service && sudo systemctl enable aprsb2.service ;;
|
sudo systemctl stop aprsb1.service && sudo systemctl start aprsb1.service && sudo systemctl enable aprsb1.service ;;
|
||||||
6)
|
6)
|
||||||
sudo systemctl stop aprsb3.service && sudo systemctl start aprsb3.service && sudo systemctl enable aprsb3.service ;;
|
sudo systemctl stop aprsb2.service && sudo systemctl start aprsb2.service && sudo systemctl enable aprsb2.service ;;
|
||||||
7)
|
7)
|
||||||
sudo systemctl stop aprsb1.service && sudo systemctl disable aprsb1.service ;;
|
sudo systemctl stop aprsb3.service && sudo systemctl start aprsb3.service && sudo systemctl enable aprsb3.service ;;
|
||||||
8)
|
8)
|
||||||
sudo systemctl stop aprsb2.service && sudo systemctl disable aprsb2.service ;;
|
sudo systemctl stop aprsb4.service && sudo systemctl start aprsb4.service && sudo systemctl enable aprsb4.service ;;
|
||||||
9)
|
9)
|
||||||
sudo systemctl stop aprsb3.service && sudo systemctl disable aprsb3.service ;;
|
sudo systemctl stop aprsb1.service && sudo systemctl disable aprsb1.service ;;
|
||||||
10)
|
10)
|
||||||
|
sudo systemctl stop aprsb2.service && sudo systemctl disable aprsb2.service ;;
|
||||||
|
11)
|
||||||
|
sudo systemctl stop aprsb3.service && sudo systemctl disable aprsb3.service ;;
|
||||||
|
12)
|
||||||
|
sudo systemctl stop aprsb4.service && sudo systemctl disable aprsb4.service ;;
|
||||||
|
13)
|
||||||
break;
|
break;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue