diff options
Diffstat (limited to 'sys/modules/linux/linux.sh')
| -rw-r--r-- | sys/modules/linux/linux.sh | 12 |
1 files changed, 7 insertions, 5 deletions
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 |
