diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-16 17:34:42 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-16 17:34:42 +0000 |
commit | e1c8cdf529bba36dec64f16206e364ffa2b519d8 (patch) | |
tree | 6bcc6db8a954996aa88ebdfe8a45b9134c3fc79f /etc/inc/interfaces.inc | |
parent | eba1ebc151a00fb008e39de009bb6ba366dc52f4 (diff) | |
download | pfsense-e1c8cdf529bba36dec64f16206e364ffa2b519d8.zip pfsense-e1c8cdf529bba36dec64f16206e364ffa2b519d8.tar.gz |
MFC 6871
If WAN is pppoe, hold down boot until connection is established This will help anyone with PPPOE on WAN and DHCP on OPTx not get incorrect gateways assigned.
Diffstat (limited to 'etc/inc/interfaces.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 +?> |