handle case when ppp0 eists but is down

This commit is contained in:
Daniel Barlow 2022-09-26 12:11:44 +01:00
parent f0024dcac5
commit 4bfba33170

View file

@ -12,6 +12,7 @@ while { $FINISHED < 5 } {
expect { expect {
"192.168.100.1" { set FINISHED 10; set EXIT 0; } "192.168.100.1" { set FINISHED 10; set EXIT 0; }
"can't find device" { send_user "waiting ..." ; send "\r\n"; sleep 3 } "can't find device" { send_user "waiting ..." ; send "\r\n"; sleep 3 }
"DOWN" { send_user "waiting ..." ; send "\r\n"; sleep 2 }
} }
set FINISHED [ expr $FINISHED + 1 ] set FINISHED [ expr $FINISHED + 1 ]
} }