summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-02 21:16:21 +0000
committerErmal <eri@pfsense.org>2010-11-02 21:16:42 +0000
commit729931965e68a3c8ab1de307446410f6810c4433 (patch)
tree41330a56bc61cf772e76366b6095a3ce55496ff0 /etc/inc/interfaces.inc
parent6bc1e79a7dd5d7498adec42045382e7c5804e530 (diff)
downloadpfsense-729931965e68a3c8ab1de307446410f6810c4433.zip
pfsense-729931965e68a3c8ab1de307446410f6810c4433.tar.gz
Protect from strange situations on bootup by testing for is_array(). Do not add anymore the 127.0.0.2 route its not needed anymore. Also during bootup bring up all interfaces so the assignment process can deal with them(Possibly should be done in another code flow!).
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 89915bd..67bf69a 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -75,9 +75,9 @@ function does_interface_exist($interface) {
global $config;
if(!$interface)
- return false;
+ return false;
- $ints = get_interface_arr();
+ $ints = get_interface_arr(true);
if (in_array($interface, $ints))
return true;
else
@@ -89,7 +89,6 @@ function interfaces_loopback_configure() {
echo "Configuring loopback interface...";
pfSense_interface_setaddress("lo0", "127.0.0.1");
interfaces_bring_up("lo0");
- exec("/sbin/route add 127.0.0.2 127.0.0.1");
if($g['booting'])
echo "done.\n";
return 0;
OpenPOWER on IntegriCloud