finally fixed?

pull/12/head
Tom Early 7 years ago
parent dc53307f87
commit d5d97aa91e

@ -96,7 +96,7 @@ BaseStatus () {
GateState='stopped' GateState='stopped'
fi fi
else else
GateState='non installed' GateState='not installed'
fi fi
echo "QetGateway is $GateState" echo "QetGateway is $GateState"
if [[ $LoadLink == 'loaded' ]]; then if [[ $LoadLink == 'loaded' ]]; then
@ -106,7 +106,7 @@ BaseStatus () {
LinkState='stopped' LinkState='stopped'
fi fi
else else
LinkState='non installed' LinkState='not installed'
fi fi
echo "QetLink is $LinkState" echo "QetLink is $LinkState"
if [[ $LoadDTMF == 'loaded' ]]; then if [[ $LoadDTMF == 'loaded' ]]; then
@ -116,7 +116,7 @@ BaseStatus () {
DTMFState='stopped' DTMFState='stopped'
fi fi
else else
DTMFState='non installed' DTMFState='not installed'
fi fi
echo "DTMF is $DTMFState" echo "DTMF is $DTMFState"
} }
@ -214,28 +214,28 @@ while [[ "$ans" != q* ]]; do
ModuleStatus 1 b "$module_b" ModuleStatus 1 b "$module_b"
ModuleStatus 2 c "$module_c" ModuleStatus 2 c "$module_c"
echo echo
if [[ "$GateState" == "not-found" ]] || [[ "$LinkState" == "not-found" ]]; then if [[ "$GateState" == 'not installed' ]] || [[ "$LinkState" == 'not installed' ]]; then
echo "i : Install configured system" echo "is : Install configured system"
else else
echo "u : Uninstall configured System" echo "us : Uninstall configured System"
fi fi
if [[ "$DTMFState" == "not-found" ]]; then if [[ "$DTMFState" == 'not installed' ]]; then
echo "D : Install DTMF" echo "id : Install DTMF"
else else
echo "U : Uninstall DTMF" echo "ud : Uninstall DTMF"
fi fi
echo "c : Clean (remove temporary files and locally build executables)" echo "c : Clean (remove temporary files and locally built executables)"
echo echo
read -p "q to quit. Command: " ans read -p "q to quit. Command: " ans
# EXECUTE COMMANDS # EXECUTE COMMANDS
if [[ "$ans" == i* ]]; then if [[ "$ans" == is* ]]; then
InstallSystem InstallSystem
elif [[ "$ans" == u* ]]; then elif [[ "$ans" == us* ]]; then
InstallSystem un InstallSystem un
elif [[ "$ans" == d* ]]; then elif [[ "$ans" == id* ]]; then
sudo make installdtmf sudo make installdtmf
elif [[ "$ans" == U* ]]; then elif [[ "$ans" == ud* ]]; then
sudo make uninstalldtmf sudo make uninstalldtmf
elif [[ "$ans" == c* ]]; then elif [[ "$ans" == c* ]]; then
make clean make clean

Loading…
Cancel
Save

Powered by TurnKey Linux.