blob: a9215cf0be714cfe611f1988a997594f5ad49491 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
# $FreeBSD$
FOUND=`kldstat -v | egrep 'linux(aout|elf)'`
exitcode=0
if [ "x$FOUND" != x ] ; then
echo Linux driver already loaded
exitcode=1
else
kldload linux
exitcode=$?
fi
if [ -f /compat/linux/sbin/ldconfig ] ; then
/compat/linux/sbin/ldconfig
fi
exit $exitcode
|