summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-03-15 19:34:58 +0000
committerdchagin <dchagin@FreeBSD.org>2016-03-15 19:34:58 +0000
commite0876678225fefb06262986143b5f67ae37c9d22 (patch)
tree70f695bf6f813c3f6115ea2130b73c8a63699511 /etc/rc.d
parente229f36ff4b720e42340e1049c3166d48b79e8a1 (diff)
downloadFreeBSD-src-e0876678225fefb06262986143b5f67ae37c9d22.zip
FreeBSD-src-e0876678225fefb06262986143b5f67ae37c9d22.tar.gz
MFS r296797:
MFC r296542: Load linux64 module for amd64 if Linux abi enabled. Reviewed by: emaste@ Approved by: re (marius) Differential Revision: https://reviews.freebsd.org/D5567
Diffstat (limited to 'etc/rc.d')
-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