diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-28 00:53:22 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-28 00:53:22 +0000 |
commit | 6395d5fadcf9876c2df3cb00e9cd52904d5c4a9c (patch) | |
tree | 2670cbb6c40de69f051fee718efc7817060dbf75 /etc | |
parent | 26ad1de19a206817ebba2c5a949f52042ca985f2 (diff) | |
download | pfsense-6395d5fadcf9876c2df3cb00e9cd52904d5c4a9c.zip pfsense-6395d5fadcf9876c2df3cb00e9cd52904d5c4a9c.tar.gz |
Alert user which interface is mismatched
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.bootup | 12 |
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(); } |