Replace kmodstat by kldstat

FreeBSD uses kldstat instead of kmodstat to get the
	stats of the dynamically loaded kernel modules.

Change-Id: I3f658469e60f48b50a81e6ab5bcc507186fd8c5a
Reviewed-on: http://gerrit.openafs.org/1694
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Aditya Sarawgi 2010-04-05 22:55:48 +05:30 committed by Derrick Brashear
parent f61d2ba1c9
commit 568a407856

View File

@ -24,7 +24,7 @@ fi
# Need the commands ps, awk, kill, sleep
PATH=${PATH}${PATH:+:}/sbin:/bin:/usr/bin
if kmodstat | grep -q afs.ko ; then
if kldstat | grep -q afs.ko ; then
:
else
if [ -f $VICEETC/afs.ko ]; then