diff options
author | Ermal <eri@pfsense.org> | 2014-04-18 15:24:34 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-04-18 15:24:34 +0000 |
commit | 928dc66a4341eeb7d84d79d7a331462107863170 (patch) | |
tree | 7e855e82adb4c07c6a948f280ef0595be1ed41eb | |
parent | 7b66c1d7c8a9a4b344768f73888ebeccf7c2d304 (diff) | |
download | pfsense-928dc66a4341eeb7d84d79d7a331462107863170.zip pfsense-928dc66a4341eeb7d84d79d7a331462107863170.tar.gz |
Be smarter at using kenv
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 61d6428..330f05f 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1634,7 +1634,7 @@ function load_thermal_hardware() { ******/ function isvm() { $virtualenvs = array("vmware", "parallels", "qemu", "bochs", "plex86"); - $bios_product = trim(`/bin/kenv | /usr/bin/awk -F= '/smbios.system.product/ {print $2}'`); + $bios_product = trim(`/bin/kenv smbios.system.product`); foreach ($virtualenvs as $virtualenv) if (stripos($bios_product, $virtualenv) !== false) return true; |