diff options
author | Ermal <eri@pfsense.org> | 2013-01-28 22:09:05 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-28 22:09:05 +0000 |
commit | e017a46a994c693f9c05c8936c1a5585d7b3ae7c (patch) | |
tree | 97d681a58377600c43e8c096d6ab4313c04d63be /etc/inc | |
parent | b0059636a9ccba5708152cb9548633e2f44c38d1 (diff) | |
download | pfsense-e017a46a994c693f9c05c8936c1a5585d7b3ae7c.zip pfsense-e017a46a994c693f9c05c8936c1a5585d7b3ae7c.tar.gz |
If the interface is not enabled do not try to configure it
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 92c5470..4a4be2b 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1147,7 +1147,7 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg = mwexec("/bin/kill {$pidv6}"); sleep(3); unlink_if_exists("{$g['varetc_path']}/dhcp6c_{$interface}.conf"); - if(does_interface_exist("$realif")) { + if (does_interface_exist("$realif")) { $ip6 = get_interface_ipv6($interface); if (is_ipaddrv6($ip6)) mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 {$ip6} delete", true); @@ -2657,6 +2657,9 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven $wancfg = $config['interfaces'][$interface]; + if (!isset($wancfg['enable'])) + return; + $realif = get_real_interface($interface); $realhwif_array = get_parent_interface($interface); // Need code to handle MLPPP if we ever use $realhwif for MLPPP handling |