summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-09-07 19:34:18 +0000
committerErmal Luçi <eri@pfsense.org>2008-09-07 19:34:18 +0000
commit4476d4475167263b170ea831dece50426655398a (patch)
tree16b1d9407d4f435d8ba4395e8221431ded72dc32 /etc/rc.linkup
parent9f6f3e04c7527781692165adcdf1b392fd0fb765 (diff)
downloadpfsense-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-xetc/rc.linkup24
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);
}
}
}
OpenPOWER on IntegriCloud