summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-06-19 15:57:42 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-06-19 15:57:42 -0300
commitc69d32f65d17ad7511afffa4fc581d7ebac87f80 (patch)
tree2c8b990ddc2d0c2c703885b930434e91d22470f8 /etc/inc/config.inc
parent902da388054922274bac36701d0b3ffa09847602 (diff)
downloadpfsense-c69d32f65d17ad7511afffa4fc581d7ebac87f80.zip
pfsense-c69d32f65d17ad7511afffa4fc581d7ebac87f80.tar.gz
Add full path for dmesg and replace backtick by exec
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 790fbc1..917f3a0 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -121,7 +121,7 @@ else if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) {
if (strstr($g['platform'], "cdrom")) {
/* config is on floppy disk for CD-ROM version */
$cfgdevice = $cfgpartition = "fd0";
- $dmesg = `dmesg -a`;
+ $_gb = exec('/sbin/dmesg -a', $dmesg);
if(preg_match("/da0/", $dmesg) == true) {
$cfgdevice = $cfgpartition = "da0" ;
if (mwexec("/sbin/mount -r /dev/{$cfgdevice} /cf")) {
OpenPOWER on IntegriCloud