diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-25 17:59:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-25 17:59:40 +0000 |
commit | 6b55233d5c68dd5111860f01d0adf810ac305490 (patch) | |
tree | da7fe983106419eb564548911fc0fdc54aee48b8 /etc/rc.linkup | |
parent | 6ea8c2f19fa123d64f0c72e2006c651eda47b32f (diff) | |
download | pfsense-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-x | etc/rc.linkup | 9 |
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; } |