mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update menu-fdmr-bridge
This commit is contained in:
parent
0983252ea0
commit
32eb53becb
|
|
@ -243,12 +243,12 @@ sudo systemctl disable http.server-fdmr-b.service
|
|||
echo "You chose cancel. Exiting..."
|
||||
exit 1 # Salir del script con un código de error
|
||||
fi
|
||||
genport=$(cat /tmp/genport.txt)1
|
||||
genport=$(cat /tmp/genport.txt)
|
||||
generat=$((iport + genport - 1))
|
||||
|
||||
sudo sed -i "s/LISTENPORT =.*/LISTENPORT = $eport/g" /opt/FDMR-Monitor-B/proxy.cfg
|
||||
sudo sed -i "s/DESTPORTSTART =.*/DESTPORTSTART = $iport/g" /opt/FDMR-Monitor-B/proxy.cfg
|
||||
sudo sed -i "s/DESTPORTEND = .*/DESTPORTEND = $generat/g" /opt/FDMR-Monitor-B/proxy.cfg
|
||||
sudo sed -i "s/LISTENPORT =.*/LISTENPORT = $eport/g" /opt/FreeDMR-Bridge/proxy.cfg
|
||||
sudo sed -i "s/DESTPORTSTART =.*/DESTPORTSTART = $iport/g" /opt/FreeDMR-Bridge/proxy.cfg
|
||||
sudo sed -i "s/DESTPORTEND = .*/DESTPORTEND = $generat/g" /opt/FreeDMR-Bridge/proxy.cfg
|
||||
|
||||
rm -f /tmp/eport.txt /tmp/iport.txt /tmp/genport.txt
|
||||
|
||||
|
|
@ -268,7 +268,7 @@ sudo systemctl disable http.server-fdmr-b.service
|
|||
"3")
|
||||
systemctl disable proxy2.service && systemctl stop proxy2.service ;;
|
||||
"4")
|
||||
sudo nano /opt/FDMR-Monitor-B/proxy.cfg &&
|
||||
sudo nano /opt/FreeDMR-Bridge/proxy.cfg &&
|
||||
if systemctl status proxy2.service |grep "service; enabled;" >/dev/null 2>&1
|
||||
then sudo systemctl restar proxy2.service
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue