Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/linux
Show All 13 Lines | |||||
rcvar="linux_enable" | rcvar="linux_enable" | ||||
start_cmd="${name}_start" | start_cmd="${name}_start" | ||||
stop_cmd=":" | stop_cmd=":" | ||||
linux_start() | linux_start() | ||||
{ | { | ||||
local _emul_path _tmpdir | local _emul_path _tmpdir | ||||
load_kld -e 'linux(aout|elf)' linux | |||||
emaste: Do we actually use `linuxaout` anywhere? I think this might be dead? | |||||
Not Done Inline ActionsWell, not dead, but could just be load_kld -e linuxelf linux emaste: Well, not dead, but could just be `load_kld -e linuxelf linux` | |||||
case `sysctl -n hw.machine_arch` in | case `sysctl -n hw.machine_arch` in | ||||
aarch64) | |||||
load_kld -e 'linux64elf' linux64 | |||||
;; | |||||
amd64) | amd64) | ||||
load_kld -e 'linuxelf' linux | |||||
load_kld -e 'linux64elf' linux64 | load_kld -e 'linux64elf' linux64 | ||||
;; | |||||
i386) | |||||
load_kld -e 'linuxelf' linux | |||||
;; | ;; | ||||
esac | esac | ||||
_emul_path="$(sysctl -n compat.linux.emul_path)" | _emul_path="$(sysctl -n compat.linux.emul_path)" | ||||
if [ -x ${_emul_path}/sbin/ldconfigDisabled ]; then | if [ -x ${_emul_path}/sbin/ldconfigDisabled ]; then | ||||
_tmpdir=`mktemp -d -t linux-ldconfig` | _tmpdir=`mktemp -d -t linux-ldconfig` | ||||
${_emul_path}/sbin/ldconfig -C ${_tmpdir}/ld.so.cache | ${_emul_path}/sbin/ldconfig -C ${_tmpdir}/ld.so.cache | ||||
Show All 29 Lines |
Do we actually use linuxaout anywhere? I think this might be dead?