linux (07cac176fba947381c8111b8e02e8067e7fa542a) | linux (e026f4243c5a65d19a63d98f55be17e8294a1e87) |
---|---|
1#!/bin/sh 2# 3# $FreeBSD$ 4# 5 6# PROVIDE: linux 7# REQUIRE: archdep 8# KEYWORD: nojail --- 5 unchanged lines hidden (view full) --- 14rcvar="linux_enable" 15start_cmd="${name}_start" 16stop_cmd=":" 17 18linux_start() 19{ 20 local _emul_path _tmpdir 21 | 1#!/bin/sh 2# 3# $FreeBSD$ 4# 5 6# PROVIDE: linux 7# REQUIRE: archdep 8# KEYWORD: nojail --- 5 unchanged lines hidden (view full) --- 14rcvar="linux_enable" 15start_cmd="${name}_start" 16stop_cmd=":" 17 18linux_start() 19{ 20 local _emul_path _tmpdir 21 |
22 load_kld -e 'linux(aout|elf)' linux | |
23 case `sysctl -n hw.machine_arch` in | 22 case `sysctl -n hw.machine_arch` in |
23 aarch64) 24 load_kld -e 'linux64elf' linux64 25 ;; |
|
24 amd64) | 26 amd64) |
27 load_kld -e 'linuxelf' linux |
|
25 load_kld -e 'linux64elf' linux64 26 ;; | 28 load_kld -e 'linux64elf' linux64 29 ;; |
30 i386) 31 load_kld -e 'linuxelf' linux 32 ;; |
|
27 esac 28 29 _emul_path="$(sysctl -n compat.linux.emul_path)" 30 31 if [ -x ${_emul_path}/sbin/ldconfigDisabled ]; then 32 _tmpdir=`mktemp -d -t linux-ldconfig` 33 ${_emul_path}/sbin/ldconfig -C ${_tmpdir}/ld.so.cache 34 if ! cmp -s ${_tmpdir}/ld.so.cache ${_emul_path}/etc/ld.so.cache; then --- 28 unchanged lines hidden --- | 33 esac 34 35 _emul_path="$(sysctl -n compat.linux.emul_path)" 36 37 if [ -x ${_emul_path}/sbin/ldconfigDisabled ]; then 38 _tmpdir=`mktemp -d -t linux-ldconfig` 39 ${_emul_path}/sbin/ldconfig -C ${_tmpdir}/ld.so.cache 40 if ! cmp -s ${_tmpdir}/ld.so.cache ${_emul_path}/etc/ld.so.cache; then --- 28 unchanged lines hidden --- |