summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-25 21:28:16 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-25 21:28:16 +0100
commit156a086d7231292dc7c4110450f400024523cc22 (patch)
tree25328b86a7337226b05c96865beed89d795a5267 /etc/rc.linkup
parent8b335b7a1efd901135041a968b6a17bc3a9b3a75 (diff)
downloadpfsense-156a086d7231292dc7c4110450f400024523cc22.zip
pfsense-156a086d7231292dc7c4110450f400024523cc22.tar.gz
Ignore linkup/down events on disabled interfaces.
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup5
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;
OpenPOWER on IntegriCloud