fiex typo

This commit is contained in:
Yasin Kaya 2020-11-26 14:02:00 +00:00
parent 0f93aaa4a1
commit ed281a616e
6 changed files with 12 additions and 13 deletions

View File

@ -22,7 +22,7 @@ if check_network -eq 0; then
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
else
debug "Network registeration is failed!";
fi
@ -51,7 +51,7 @@ while true; do
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
fi
fi
sleep $INTERVAL

View File

@ -10,7 +10,7 @@ if check_network -eq 0; then
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
else
debug "Network registeration is failed!";
fi
@ -39,7 +39,7 @@ while true; do
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
fi
fi
sleep $INTERVAL

View File

@ -63,7 +63,7 @@ if check_network -eq 0; then
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
else
debug "Network registeration is failed!";
@ -93,7 +93,7 @@ while true; do
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
fi
fi
sleep $INTERVAL

View File

@ -64,7 +64,7 @@ if check_network -eq 0; then
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
else
debug "Network registeration is failed!";
fi
@ -93,7 +93,7 @@ while true; do
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
fi
fi
sleep $INTERVAL

View File

@ -43,7 +43,6 @@ function power_up_module()
return 1
}
# Modem power up
if power_up_module -eq 0 ; then sleep 0.1; else debug "Module couldn't be powered up! Check the hardware setup!"; fi
@ -54,7 +53,7 @@ if check_network -eq 0; then
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
else
debug "Network registeration is failed!";
fi
@ -83,7 +82,7 @@ while true; do
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
fi
fi
sleep $INTERVAL

View File

@ -64,7 +64,7 @@ if check_network -eq 0; then
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
else
debug "Network registeration is failed!";
fi
@ -93,7 +93,7 @@ while true; do
# check default interface
route | grep ppp | grep default > /dev/null
PPP_IS_DEFAULT=$?
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi
if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi
fi
fi
sleep $INTERVAL