This commit is contained in:
Esteban Mackay Q 2023-12-10 10:20:56 -05:00
parent dacdd07a7f
commit 6293103a44
2 changed files with 12 additions and 3 deletions

View File

@ -157,8 +157,8 @@ sudo cat > /opt/YSF2DMRGW/YSF2DMR.ini <<- "EOF"
ServiceStart=0
[Info]
RXFrequency=0
TXFrequency=0
RXFrequency=433400000
TXFrequency=433400000
Power=1
Latitude=0.0
Longitude=0.0

View File

@ -145,7 +145,16 @@ then
fi
;;
7)
sudo systemctl stop mmdvmh.service && sudo systemctl disable mmdvmh.service && systemctl stop ysf2dmrgw.service && sudo systemctl stop dmrgw.service ;;
#!/bin/bash
servicios=("mmdvmh.service" "dmrgw.service" "ysfgw.service" "ysf2dmrgw.service")
# Recorre la lista de servicios y deshabilita y detiene sin enviar mensaje
for servicio in "${servicios[@]}"; do
sudo systemctl disable --quiet "$servicio"
sudo systemctl stop --quiet "$servicio"
done
;;
8)
wdp=/opt/wdp5
wsn0=$(grep "Web-Dashboar-name:" $wdp | grep -oP 'Web-Dashboar-name:\s*\K.*')