mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-22 16:44:32 +01:00
Add a run of Linux ldconfig.
This commit is contained in:
parent
0b96c7476e
commit
e14140f43e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54541
@ -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…
Reference in New Issue
Block a user