summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-03-08 05:29:04 +0000
committerErmal Luçi <eri@pfsense.org>2009-03-08 05:29:13 +0000
commitde5de07c07b74fa37a72a4a0180599dcc7523121 (patch)
tree0151ffeca0fb0e6439df0197838922721c60818e
parent60951398f2ccd39fa6fda7f55c8fcb0f39dac437 (diff)
downloadpfsense-de5de07c07b74fa37a72a4a0180599dcc7523121.zip
pfsense-de5de07c07b74fa37a72a4a0180599dcc7523121.tar.gz
Change this to simple greps for some reason kldstat options do not work on bootup!
-rw-r--r--etc/inc/util.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index e28c068..3819d9c 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -72,7 +72,7 @@ function killbyname($procname) {
}
function is_module_loaded($module_name) {
- $running = `/sbin/kldstat -n /boot/kernel/{$module_name} | /usr/bin/grep {$module_name} | /usr/bin/wc -l`;
+ $running = `/sbin/kldstat | grep {$module_name} | /usr/bin/grep -v grep | /usr/bin/wc -l`;
if (intval($running) >= 1)
return true;
else
OpenPOWER on IntegriCloud