summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorccesario <carloscesario@gmail.com>2012-06-30 09:54:28 -0300
committerccesario <carloscesario@gmail.com>2012-06-30 09:54:28 -0300
commitf1bdc4e3a5961aaf585d2b60b2da113681534b17 (patch)
treea33c4b236216bd3b0a31a1742b1887c58d94ea04 /etc
parent36e77fa968db0648c82fc2f83d2219591bd311d9 (diff)
downloadpfsense-f1bdc4e3a5961aaf585d2b60b2da113681534b17.zip
pfsense-f1bdc4e3a5961aaf585d2b60b2da113681534b17.tar.gz
Change ereg() to preg_match() function
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.console.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/config.console.inc b/etc/inc/config.console.inc
index aaf54f3..78ad524 100644
--- a/etc/inc/config.console.inc
+++ b/etc/inc/config.console.inc
@@ -69,7 +69,7 @@ function set_networking_interfaces_ports() {
$key = null;
/* Only present auto interface option if running from LiveCD and interface mismatch*/
- if ((ereg("cdrom", $g['platform'])) && is_interface_mismatch())
+ if ((preg_match("/cdrom/", $g['platform'])) && is_interface_mismatch())
$auto_assign = false;
echo <<<EOD
OpenPOWER on IntegriCloud