summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-30 19:51:25 +0000
committerErmal <eri@pfsense.org>2010-08-30 19:51:25 +0000
commit69695597ca7eef4f1afa0b2b1f771eade1be3596 (patch)
tree28f12c974131820661d3bd9dbc1171e579fe8661 /etc/rc.linkup
parent2c7497cb68acefa086f5f29ec5cdc0b565562966 (diff)
downloadpfsense-69695597ca7eef4f1afa0b2b1f771eade1be3596.zip
pfsense-69695597ca7eef4f1afa0b2b1f771eade1be3596.tar.gz
Ticket #846. Do not reconfigure an 'none' configured interface.
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index 682adb1..02eedc4 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -40,7 +40,7 @@ function handle_argument_group($iface, $argument2) {
global $config;
$ipaddr = $config['interfaces'][$iface]['ipaddr'];
- if (is_ipaddr($ipaddr)) {
+ if (is_ipaddr($ipaddr) || empty($ipaddr)) {
log_error("Hotplug event detected for {$iface} but ignoring since interface is configured with static IP ({$ipaddr})");
$iface = get_real_interface($iface);
exec("/usr/sbin/arp -d -i {$iface} -a");
OpenPOWER on IntegriCloud