summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-23 23:32:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-23 23:32:05 +0000
commit8cd7e1fa57a5926f23e65b577c36d4ad442d90ab (patch)
tree560b659347a0b26bf07c693795e63f0cedd4c8ec /etc
parent92d2426050d803e24137b73f375e30ac994065f3 (diff)
downloadpfsense-8cd7e1fa57a5926f23e65b577c36d4ad442d90ab.zip
pfsense-8cd7e1fa57a5926f23e65b577c36d4ad442d90ab.tar.gz
* Use is_interface_mismatch() function * Do not allow configuration to continue until the interfaces are setup correctly
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.bootup30
1 files changed, 10 insertions, 20 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index c5a90db..64362bf 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -78,27 +78,17 @@
* and ask the user to reassign interfaces. This will
* avoid a reboot and thats a good thing.
*/
- $do_assign = 0;
- /* we need to ignore the vlan interface checks) */
- if(stristr($lan_if,"vlan") == false and stristr($wan_if,"vlan") == false) {
- 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.";
- $do_assign = 1;
- }
- }
- if($do_assign == 1 and !file_exists("{$g['tmp_path']}/assign_complete")) {
- $noreboot = true;
- echo " -- Running interface assignment option.\n";
- set_networking_interfaces_ports();
- }
- }
unmute_kernel_msgs();
-
+ /*
+ * Determine if we need to throw a interface exception
+ * and ask the user to reassign interfaces. This will
+ * avoid a reboot and thats a good thing.
+ */
+ while(is_interface_mismatch() == true) {
+ echo "\nNetwork interface mismatch -- Running interface assignment option.\n";
+ set_networking_interfaces_ports();
+ }
+
/* convert config and clean backups */
echo "Updating configuration...";
convert_config();
OpenPOWER on IntegriCloud