mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-14 15:24:52 +00:00
correct issue where script is always run once
add capture of configure_modem.sh exit code and increment i if configure_modem.sh fails
This commit is contained in:
parent
fc6506b125
commit
cca880e92d
@ -4,10 +4,12 @@ source functions.sh
|
||||
|
||||
for i in {1..4}; do
|
||||
bash configure_modem.sh
|
||||
MODEM_CONFIG=$?
|
||||
|
||||
if [[ $MODEM_CONFIG -eq 0 ]]; then
|
||||
break
|
||||
fi
|
||||
i=$(($i+1))
|
||||
sleep 1
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user