diff options
author | peter <peter@FreeBSD.org> | 1998-11-05 04:19:26 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-11-05 04:19:26 +0000 |
commit | a912408d9c8524c566a36bdf953cd3ba4a04982a (patch) | |
tree | ef1851a1fb96cd17a95743c880ae8250db4fd1da /sys/modules/linux | |
parent | 71b3e0fe14689aef086e776a0da4df64f6e208c4 (diff) | |
download | FreeBSD-src-a912408d9c8524c566a36bdf953cd3ba4a04982a.zip FreeBSD-src-a912408d9c8524c566a36bdf953cd3ba4a04982a.tar.gz |
Update to use kldload, no temporary files!
Diffstat (limited to 'sys/modules/linux')
-rw-r--r-- | sys/modules/linux/linux | 12 | ||||
-rw-r--r-- | sys/modules/linux/linux.sh | 12 |
2 files changed, 14 insertions, 10 deletions
diff --git a/sys/modules/linux/linux b/sys/modules/linux/linux index 9945a99..8545fbb 100644 --- a/sys/modules/linux/linux +++ b/sys/modules/linux/linux @@ -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 diff --git a/sys/modules/linux/linux.sh b/sys/modules/linux/linux.sh index 9945a99..8545fbb 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 |