Update menu-mmdvm

This commit is contained in:
RaspbianProyect by HP3ICC 2023-02-20 19:59:40 +00:00
parent d2073b62e0
commit c055c7db36
1 changed files with 40 additions and 1 deletions

View File

@ -35,7 +35,46 @@ sudo nano /opt/YSFGateway2/YSFGateway.ini;;
4)
sudo nano /opt/YSF2DMRGW/YSF2DMR.ini;;
5)
sh /usr/local/bin/rpt-on.sh && sudo systemctl stop dmrid-mmdvm.service && sudo systemctl start dmrid-mmdvm.service && sudo systemctl enable dmrid-mmdvm.service && cronedit.sh '0 3 * * *' 'sh /opt/MMDVMHost/DMRIDUpdate.sh' add ;;
sudo systemctl stop mmdvmh.service
if cat /opt/MMDVMHost/MMDVM.ini | grep ServiceStart=0 >/dev/null 2>&1
then
sudo systemctl disable mmdvmh.service
elif cat /opt/MMDVMHost/MMDVM.ini | grep ServiceStart=1 >/dev/null 2>&1
then
sudo systemctl start mmdvmh.service
sudo systemctl enable mmdvmh.service
fi
sudo systemctl stop ysfgw.service
if cat /opt/YSFGateway2/YSFGateway.ini | grep ServiceStart=0 >/dev/null 2>&1
then
sudo systemctl disable ysfgw.service
elif cat /opt/YSFGateway2/YSFGateway.ini | grep ServiceStart=1 >/dev/null 2>&1
then
sudo systemctl start ysfgw.service
sudo systemctl enable ysfgw.service
fi
sudo systemctl stop ysf2dmrgw.service
if cat /opt/YSF2DMRGW/YSF2DMR.ini | grep ServiceStart=0 >/dev/null 2>&1
then
sudo systemctl disable ysf2dmrgw.service
elif cat /opt/YSF2DMRGW/YSF2DMR.ini | grep ServiceStart=1 >/dev/null 2>&1
then
sudo systemctl start ysf2dmrgw.service
sudo systemctl enable ysf2dmrgw.service
fi
sudo systemctl stop dmrgw.service
if cat /opt/DMRGateway/DMRGateway.ini | grep ServiceStart=0 >/dev/null 2>&1
then
sudo systemctl disable dmrgw.service
elif cat /opt/DMRGateway/DMRGateway.ini | grep ServiceStart=1 >/dev/null 2>&1
then
sudo systemctl start dmrgw.service
sudo systemctl enable dmrgw.service
fi
;;
6)
sudo systemctl stop mmdvmh.service && sudo systemctl disable mmdvmh.service && systemctl stop ysf2dmrgw.service && sudo systemctl stop dmrgw.service && sudo systemctl stop dmrid-mmdvm.service && sudo systemctl disable dmrid-mmdvm.service && cronedit.sh '0 3 * * *' 'sh /opt/MMDVMHost/DMRIDUpdate.sh' remove && sudo rm /var/log/mmdvmh/MMDVMH.* ;;
7)