diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index b16368e..fd0c5b8 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1029,6 +1029,13 @@ EOD; /* fire up mpd */ mwexec("/usr/local/sbin/mpd -b -d {$g['varetc_path']} -p {$g['varrun_path']}/mpd.pid pppoe"); + /* sleep until wan is up */ + while(!file_exists("{$g['tmp_path']}/wanup")) { + sleep(1); + } + unlink_if_exists("{$g['tmp_path']}/wanup"); + + return 0; } @@ -1346,4 +1353,4 @@ function discover_bridge($interface1, $interface2) { return "-1"; } -?>
\ No newline at end of file +?> |