Add a run of Linux ldconfig.
This commit is contained in:
parent
0b96c7476e
commit
e14140f43e
@ -4,9 +4,18 @@
|
||||
|
||||
FOUND=`kldstat -v | egrep 'linux(aout|elf)'`
|
||||
|
||||
exitcode=0
|
||||
|
||||
if [ "x$FOUND" != x ] ; then
|
||||
echo Linux driver already loaded
|
||||
exit 1
|
||||
exitcode=1
|
||||
else
|
||||
kldload linux
|
||||
exitcode=$?
|
||||
fi
|
||||
|
||||
if [ -f /compat/linux/sbin/ldconfig ] ; then
|
||||
/compat/linux/sbin/ldconfig
|
||||
fi
|
||||
|
||||
exit $exitcode
|
||||
|
Loading…
x
Reference in New Issue
Block a user