/etc/rc.d/abi: can't understand linux_start
Andriy Gapon
avg at icyb.net.ua
Fri Nov 7 09:58:01 PST 2008
FreeBSD 7.1-PRERELEASE r184741 amd64
Fresh install.
I see the following in /etc/rc.d/abi:
linux_start()
{
local _tmpdir
echo -n ' linux'
load_kld -e 'linux(aout|elf)' linux
if [ -x /compat/linux/sbin/ldconfigDisabled ]; then
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
So we run linux ldconfig and create linux ld.so.cache only if there is
executable file ldconfigDisabled?
I have linux_base-f7-7 installed and there is no such file and skype
can't find required shared libs. If I manually run ldconfig, then skype
is happy.
_tmpdir=`mktemp -d -t linux-ldconfig`
/compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache
if ! cmp -s ${_tmpdir}/ld.so.cache
/compat/linux/etc/ld.so.cache; then
cat ${_tmpdir}/ld.so.cache >
/compat/linux/etc/ld.so.cache
fi
rm -rf ${_tmpdir}
fi
}
--
Andriy Gapon
More information about the freebsd-emulation
mailing list