diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 21:28:16 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 21:28:16 +0100 |
commit | 156a086d7231292dc7c4110450f400024523cc22 (patch) | |
tree | 25328b86a7337226b05c96865beed89d795a5267 | |
parent | 8b335b7a1efd901135041a968b6a17bc3a9b3a75 (diff) | |
download | pfsense-156a086d7231292dc7c4110450f400024523cc22.zip pfsense-156a086d7231292dc7c4110450f400024523cc22.tar.gz |
Ignore linkup/down events on disabled interfaces.
-rwxr-xr-x | etc/rc.linkup | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup index 2fb8b68..4f71ed7 100755 --- a/etc/rc.linkup +++ b/etc/rc.linkup @@ -44,6 +44,11 @@ function handle_argument_group($iface, $argument2) { return; } + if (!isset($config['interfaces'][$interface]['enable'])) { + log_error("Linkup detected on disabled interface...Ignoring"); + return; + } + $ipaddr = $config['interfaces'][$iface]['ipaddr']; $ip6addr = $config['interfaces'][$iface]['ipaddrv6']; $staticv4 = false; |