Add a run of Linux ldconfig.

This commit is contained in:
Martin Cracauer 1999-12-13 08:38:22 +00:00
parent 0b96c7476e
commit e14140f43e

View File

@ -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