/etc/rc.d/abi: can't understand linux_start

Boris Samorodov bsam at ipt.ru
Fri Nov 7 12:23:09 PST 2008


Andriy Gapon <avg at icyb.net.ua> writes:

> 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.

Here is some info (look at rev. 1.7):
http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/abi

>                 _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
> }

WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve


More information about the freebsd-emulation mailing list