From 38266231ef8f81558fc66b00de2929055fe52adb Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 5 Nov 1998 04:19:26 +0000 Subject: Update to use kldload, no temporary files! --- sys/modules/linux/linux.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sys/modules/linux/linux.sh') diff --git a/sys/modules/linux/linux.sh b/sys/modules/linux/linux.sh index 9945a9908c5c0..8545fbbc47bc7 100644 --- a/sys/modules/linux/linux.sh +++ b/sys/modules/linux/linux.sh @@ -1,10 +1,12 @@ #!/bin/sh -# $Id: linux,v 1.4 1997/02/22 12:48:25 peter Exp $ +# $Id: linux,v 1.5 1998/09/07 16:15:59 cracauer Exp $ -if modstat -n linux_mod > /dev/null ; then - echo Linux lkm already loaded +FOUND=`kldstat -v | egrep 'linux(aout|elf)'` + +if [ "x$FOUND" != x ] ; then + echo Linux driver already loaded exit 1 -else - modload -e linux_mod -u -q -o /tmp/linux_mod /lkm/linux_mod.o +else + kldload linux fi -- cgit v1.3