diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-06-19 15:57:42 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-06-19 15:57:42 -0300 |
commit | c69d32f65d17ad7511afffa4fc581d7ebac87f80 (patch) | |
tree | 2c8b990ddc2d0c2c703885b930434e91d22470f8 | |
parent | 902da388054922274bac36701d0b3ffa09847602 (diff) | |
download | pfsense-c69d32f65d17ad7511afffa4fc581d7ebac87f80.zip pfsense-c69d32f65d17ad7511afffa4fc581d7ebac87f80.tar.gz |
Add full path for dmesg and replace backtick by exec
-rw-r--r-- | etc/inc/config.inc | 2 |
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")) { |