mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix the {interface}up checks.
This commit is contained in:
parent
b55307bfb8
commit
faab50d4a2
@ -602,7 +602,7 @@ function interface_bring_down($interface = "wan", $destroy = false) {
|
||||
mwexec("/usr/sbin/arp -d -i {$realif} -a");
|
||||
|
||||
/* remove interface up file if it exists */
|
||||
unlink_if_exists("{$g['tmp_path']}/{$interface}up");
|
||||
unlink_if_exists("{$g['tmp_path']}/{$realif}up");
|
||||
unlink_if_exists("{$g['vardb_path']}/{$interface}ip");
|
||||
//unlink_if_exists("{$g['varetc_path']}/nameservers.conf");
|
||||
|
||||
@ -1628,13 +1628,13 @@ EOD;
|
||||
|
||||
/* sleep until wan is up - or 30 seconds, whichever comes first */
|
||||
for ($count = 0; $count < 30; $count++) {
|
||||
if(file_exists("{$g['tmp_path']}/{$interface}up")) {
|
||||
if(file_exists("{$g['tmp_path']}/{$realif}up")) {
|
||||
break;
|
||||
}
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
unlink_if_exists("{$g['tmp_path']}/{$interface}up");
|
||||
unlink_if_exists("{$g['tmp_path']}/{$realif}up");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user