summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-09 23:09:33 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-09 23:09:33 +0000
commit61c25e53a20cc241316315f3af1717bbc80a7c4c (patch)
treee9cbb2b43e907ba34b12a265eb7d1046289e0ac0 /etc
parent257ff0fff15443e980f321a03ef44215f92e5a63 (diff)
downloadpfsense-61c25e53a20cc241316315f3af1717bbc80a7c4c.zip
pfsense-61c25e53a20cc241316315f3af1717bbc80a7c4c.tar.gz
Ignore interface mistmatch checks if either interface uses a vlan
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.bootup32
1 files changed, 17 insertions, 15 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index fd8a064..d242f96 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -44,21 +44,23 @@
$wan_if = get_real_wan_interface();
$do_assign = 0;
-
- if(does_interface_exist($lan_if) == false) {
- echo "\n\n\nLAN {$lan_if} interface mismatch.";
- $do_assign = 1;
- }
- if($config['interfaces']['wan']['ipaddr'] <> "pppoe" && $config['interfaces']['wan']['ipaddr'] <> "pptp" && $do_assign == 0)
- if(does_interface_exist($wan_if) == false) {
- echo "\n\n\nWAN {$wan_if} interface mismatch.";
+ /* we need to ignore the vlan interface checks) */
+ if(stristr($lan_if,"vlan") == false or stristr($wan_if,"vlan") == false) {
+ if(does_interface_exist($lan_if) == false) {
+ echo "\n\n\nLAN {$lan_if} interface mismatch.";
$do_assign = 1;
- }
-
- if($do_assign == 1) {
- $noreboot = true;
- echo " -- Running interface assignment option.\n";
- set_networking_interfaces_ports();
+ }
+ if($config['interfaces']['wan']['ipaddr'] <> "pppoe" && $config['interfaces']['wan']['ipaddr'] <> "pptp" && $do_assign == 0) {
+ if(does_interface_exist($wan_if) == false) {
+ echo "\n\n\nWAN {$wan_if} interface mismatch.";
+ $do_assign = 1;
+ }
+ }
+ if($do_assign == 1) {
+ $noreboot = true;
+ echo " -- Running interface assignment option.\n";
+ set_networking_interfaces_ports();
+ }
}
/* convert configuration, if necessary */
@@ -162,7 +164,7 @@
system_do_shell_commands();
/* start ftp proxy helpers if they are enabled */
- system_start_ftp_helpers();
+ system_start_ftp_helpers();
/* done */
unlink("{$g['varrun_path']}/booting");
OpenPOWER on IntegriCloud