summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-28 00:53:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-28 00:53:22 +0000
commit6395d5fadcf9876c2df3cb00e9cd52904d5c4a9c (patch)
tree2670cbb6c40de69f051fee718efc7817060dbf75 /etc
parent26ad1de19a206817ebba2c5a949f52042ca985f2 (diff)
downloadpfsense-6395d5fadcf9876c2df3cb00e9cd52904d5c4a9c.zip
pfsense-6395d5fadcf9876c2df3cb00e9cd52904d5c4a9c.tar.gz
Alert user which interface is mismatched
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.bootup12
1 files changed, 9 insertions, 3 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 0086bae..94928ac 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -45,13 +45,19 @@
$do_assign = 0;
- if(does_interface_exist($lan_if) == false) $do_assign = 1;
+ 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) $do_assign = 1;
+ 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 "\n\n\nInterface mismatch. Running interface assignment option.\n";
+ echo " -- Running interface assignment option.\n";
set_networking_interfaces_ports();
}
OpenPOWER on IntegriCloud