summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-25 17:59:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-25 17:59:40 +0000
commit6b55233d5c68dd5111860f01d0adf810ac305490 (patch)
treeda7fe983106419eb564548911fc0fdc54aee48b8 /etc/rc.linkup
parent6ea8c2f19fa123d64f0c72e2006c651eda47b32f (diff)
downloadpfsense-6b55233d5c68dd5111860f01d0adf810ac305490.zip
pfsense-6b55233d5c68dd5111860f01d0adf810ac305490.tar.gz
Only exit linkup when interface is not a dynamic type. Prior we where exiting only if it was DHCP which would bypass linkup events for PPPoE, etc.
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index 5884b09..8a19d2a 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -30,11 +30,18 @@
*/
/* parse the configuration and include all functions used below */
+ require_once("globals.inc");
require_once("config.inc");
require_once("functions.inc");
+ if($g['booting'] == true)
+ exit;
+
$friendly_interface = convert_real_interface_to_friendly_interface_name($argv[1]);
- if($config['interfaces'][$friendly_interface]['ipaddr'] <> "dhcp") {
+ if($config['interfaces'][$friendly_interface]['ipaddr'] <> "dhcp" and
+ $config['interfaces'][$friendly_interface]['ipaddr'] <> "pppoe" and
+ $config['interfaces'][$friendly_interface]['ipaddr'] <> "bigpond" and
+ $config['interfaces'][$friendly_interface]['ipaddr'] <> "pptp") {
log_error("Hotplug event detected for {$argv[1]} but ignoring since interface is not set for DHCP");
exit;
}
OpenPOWER on IntegriCloud