summaryrefslogtreecommitdiffstats
path: root/sys/modules/linux
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-11-05 04:19:26 +0000
committerpeter <peter@FreeBSD.org>1998-11-05 04:19:26 +0000
commita912408d9c8524c566a36bdf953cd3ba4a04982a (patch)
treeef1851a1fb96cd17a95743c880ae8250db4fd1da /sys/modules/linux
parent71b3e0fe14689aef086e776a0da4df64f6e208c4 (diff)
downloadFreeBSD-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/linux12
-rw-r--r--sys/modules/linux/linux.sh12
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
OpenPOWER on IntegriCloud