From 6b55233d5c68dd5111860f01d0adf810ac305490 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 25 Nov 2005 17:59:40 +0000 Subject: 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. --- etc/rc.linkup | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'etc') 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; } -- cgit v1.1