From de5de07c07b74fa37a72a4a0180599dcc7523121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Sun, 8 Mar 2009 05:29:04 +0000 Subject: Change this to simple greps for some reason kldstat options do not work on bootup! --- etc/inc/util.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1