diff options
-rw-r--r-- | etc/inc/interfaces.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index cff2fd1..7d0d021 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1671,6 +1671,15 @@ EOD; else setup_pppoe_reset_file($ppp['if']); } + /* wait for upto 10 seconds for the interface to appear (ppp(oe)) */ + $i = 0; + while($i < 10) { + exec("/sbin/ifconfig {$ppp['if']} 2>&1", $out, $ret); + if($ret == 0) + break; + sleep(1); + $i++; + } return 1; } |