diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-09-07 19:34:18 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-09-07 19:34:18 +0000 |
commit | 4476d4475167263b170ea831dece50426655398a (patch) | |
tree | 16b1d9407d4f435d8ba4395e8221431ded72dc32 /etc/rc.linkup | |
parent | 9f6f3e04c7527781692165adcdf1b392fd0fb765 (diff) | |
download | pfsense-4476d4475167263b170ea831dece50426655398a.zip pfsense-4476d4475167263b170ea831dece50426655398a.tar.gz |
Merge lan configuration to the interfaces_wan.php page wich does the configuration of all
other assigned interfaces.
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-x | etc/rc.linkup | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup index e948175..262cc20 100755 --- a/etc/rc.linkup +++ b/etc/rc.linkup @@ -79,24 +79,12 @@ exec("/usr/sbin/arp -d -i {$argument1} -a"); break; } - switch ($iface) { - case "wan": - if($config['interfaces'][$iface]['ipaddr'] <> "pppoe" and - $config['interfaces'][$iface]['ipaddr'] <> "pptp") { - /* do not reconfigure on hotplug events when using pppoe or pptp */ - log_error("HOTPLUG: Configuring wan interface {$argument1}"); - interfaces_wan_configure(); - } - break; - case "lan": - log_error("HOTPLUG: Configuring lan interface {$argument1}"); - interfaces_lan_configure(); - break; - default: - interfaces_wan_configure($interface); - echo "interfaces_wan_configure($interface);\n"; - log_error("HOTPLUG: Configuring optional interface {$interface}"); - break; + + if($config['interfaces'][$iface]['ipaddr'] <> "pppoe" and + $config['interfaces'][$iface]['ipaddr'] <> "pptp") { + /* do not reconfigure on hotplug events when using pppoe or pptp */ + log_error("HOTPLUG: Configuring wan interface {$argument1}"); + interfaces_wan_configure($iface); } } } |