diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-06-19 15:58:06 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-06-19 15:58:06 -0300 |
commit | 3f0c20c3cd022925063d4c9b8d24a1f91fd8ca07 (patch) | |
tree | 7b76ae99f99a7840eed1642e825fe79fca1fbd85 /etc/inc/config.inc | |
parent | c69d32f65d17ad7511afffa4fc581d7ebac87f80 (diff) | |
download | pfsense-3f0c20c3cd022925063d4c9b8d24a1f91fd8ca07.zip pfsense-3f0c20c3cd022925063d4c9b8d24a1f91fd8ca07.tar.gz |
Add -n for 2 remaining sysctl calls, also replace backtick by exec
Diffstat (limited to 'etc/inc/config.inc')
-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 917f3a0..7ce4d72 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -137,7 +137,7 @@ else if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) { } else { if($g['booting']) echo "."; /* probe kernel known disks until we find one with config.xml */ - $disks = explode(" ", trim(preg_replace("/kern.disks: /", "", exec("/sbin/sysctl kern.disks")))); + $disks = explode(" ", trim(exec("/sbin/sysctl -n kern.disks"))); foreach ($disks as $mountdisk) { /* skip mfs mounted filesystems */ if (strstr($mountdisk, "md")) |