summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-03-08 19:08:55 +0000
committerdchagin <dchagin@FreeBSD.org>2016-03-08 19:08:55 +0000
commit87ba812313548fa59dd98d88bae4793c5c4a7950 (patch)
tree88a2347390ffd732960fadd7273e640878cbab77
parent97c61b2440bce22f5cd8fbb32df5a0d2559e352f (diff)
downloadFreeBSD-src-87ba812313548fa59dd98d88bae4793c5c4a7950.zip
FreeBSD-src-87ba812313548fa59dd98d88bae4793c5c4a7950.tar.gz
Load linux64 module for amd64 if Linux abi enabled.
Reviewed by: emaste@ MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5567
-rwxr-xr-xetc/rc.d/abi5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.d/abi b/etc/rc.d/abi
index 3765b05..5021843 100755
--- a/etc/rc.d/abi
+++ b/etc/rc.d/abi
@@ -27,6 +27,11 @@ linux_start()
echo -n ' linux'
load_kld -e 'linux(aout|elf)' linux
+ case `sysctl -n hw.machine_arch` in
+ amd64)
+ load_kld -e 'linux64elf' linux64
+ ;;
+ esac
if [ -x /compat/linux/sbin/ldconfigDisabled ]; then
_tmpdir=`mktemp -d -t linux-ldconfig`
/compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache
OpenPOWER on IntegriCloud