mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't check compat.linux.emul_path before loading linux(4)
Fixe40787f900to make libexec/rc/rc.d/linux retrieve the sysctl after loading the kernel module which provides it, not before. Reported By: jkim Sponsored By: The FreeBSD Foundation (cherry picked from commit07cac176fb)
This commit is contained in:
parent
1b2802ed4e
commit
5dc2e1bcf4
1 changed files with 3 additions and 1 deletions
|
|
@ -18,7 +18,6 @@ stop_cmd=":"
|
|||
linux_start()
|
||||
{
|
||||
local _emul_path _tmpdir
|
||||
_emul_path="$(sysctl -n compat.linux.emul_path)"
|
||||
|
||||
load_kld -e 'linux(aout|elf)' linux
|
||||
case `sysctl -n hw.machine_arch` in
|
||||
|
|
@ -26,6 +25,9 @@ linux_start()
|
|||
load_kld -e 'linux64elf' linux64
|
||||
;;
|
||||
esac
|
||||
|
||||
_emul_path="$(sysctl -n compat.linux.emul_path)"
|
||||
|
||||
if [ -x ${_emul_path}/sbin/ldconfigDisabled ]; then
|
||||
_tmpdir=`mktemp -d -t linux-ldconfig`
|
||||
${_emul_path}/sbin/ldconfig -C ${_tmpdir}/ld.so.cache
|
||||
|
|
|
|||
Loading…
Reference in a new issue