mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-24 03:44:55 +00:00
delete logger
This commit is contained in:
parent
a47a3966f6
commit
5231bb9b4f
@ -2,20 +2,9 @@
|
|||||||
|
|
||||||
source functions.sh
|
source functions.sh
|
||||||
|
|
||||||
LOG_FOLDER="./logs"
|
|
||||||
LOG_FILE_NAME=$(date "+%Y_%m_%d_%H:%M:%S")
|
|
||||||
|
|
||||||
if [[ -e $LOG_FOLDER ]]; then
|
|
||||||
debug "Log folder already exist!"
|
|
||||||
else
|
|
||||||
sudo mkdir $LOG_FOLDER
|
|
||||||
debug "Log folder is created."
|
|
||||||
fi
|
|
||||||
|
|
||||||
for i in {1..4}; do
|
for i in {1..4}; do
|
||||||
bash configure_modem.sh |& sudo tee -a ./logs/$LOG_FILE_NAME.log
|
bash configure_modem.sh
|
||||||
MODEM_CONFIG=${PIPESTATUS[0]} # compatible with only bash
|
|
||||||
|
|
||||||
if [[ $MODEM_CONFIG -eq 0 ]]; then
|
if [[ $MODEM_CONFIG -eq 0 ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -23,7 +12,7 @@ for i in {1..4}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ $MODEM_CONFIG -eq 0 ]]; then
|
if [[ $MODEM_CONFIG -eq 0 ]]; then
|
||||||
bash ppp_reconnect.sh |& sudo tee -a ./logs/$LOG_FILE_NAME.log
|
bash ppp_reconnect.sh
|
||||||
else
|
else
|
||||||
debug "Modem configuration is failed multiple times!"
|
debug "Modem configuration is failed multiple times!"
|
||||||
debug "Checkout other troubleshooting steps on docs.sixfab.com."
|
debug "Checkout other troubleshooting steps on docs.sixfab.com."
|
||||||
|
Loading…
Reference in New Issue
Block a user