|
|
|
@ -277,19 +277,19 @@ MaintenanceMenu () {
|
|
|
|
if [[ "$ans" == g* ]]; then
|
|
|
|
if [[ "$ans" == g* ]]; then
|
|
|
|
if [[ "$GateState" == 'running' ]]; then
|
|
|
|
if [[ "$GateState" == 'running' ]]; then
|
|
|
|
sudo systemctl stop qngateway
|
|
|
|
sudo systemctl stop qngateway
|
|
|
|
elif [[ "$GateState" == 'stopped' ]]
|
|
|
|
elif [[ "$GateState" == 'stopped' ]]; then
|
|
|
|
sudo systemctl start qngateway
|
|
|
|
sudo systemctl start qngateway
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
elif [[ "$ans" == l* ]]; then
|
|
|
|
elif [[ "$ans" == l* ]]; then
|
|
|
|
if [[ "$LinkState" == 'running' ]]; then
|
|
|
|
if [[ "$LinkState" == 'running' ]]; then
|
|
|
|
sudo systemctl stop qnlink
|
|
|
|
sudo systemctl stop qnlink
|
|
|
|
elif [[ "$LinkState" == 'stopped' ]]
|
|
|
|
elif [[ "$LinkState" == 'stopped' ]]; then
|
|
|
|
sudo systemctl start qnlink
|
|
|
|
sudo systemctl start qnlink
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
elif [[ "$ans" == d* ]]; then
|
|
|
|
elif [[ "$ans" == d* ]]; then
|
|
|
|
if [[ "$DTMFState" == 'running' ]]; then
|
|
|
|
if [[ "$DTMFState" == 'running' ]]; then
|
|
|
|
sudo systemctl stop qndtmf
|
|
|
|
sudo systemctl stop qndtmf
|
|
|
|
elif [[ "$DTMFState" == 'stopped' ]]
|
|
|
|
elif [[ "$DTMFState" == 'stopped' ]]; then
|
|
|
|
sudo systemctl start qndtmf
|
|
|
|
sudo systemctl start qndtmf
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
elif [[ "$ans" == a* ]] && [ -n $module_a ]; then
|
|
|
|
elif [[ "$ans" == a* ]] && [ -n $module_a ]; then
|
|
|
|
|