Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/abi
Show All 35 Lines | linux_start() | ||||
if [ -x /compat/linux/sbin/ldconfigDisabled ]; then | if [ -x /compat/linux/sbin/ldconfigDisabled ]; then | ||||
_tmpdir=`mktemp -d -t linux-ldconfig` | _tmpdir=`mktemp -d -t linux-ldconfig` | ||||
/compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache | /compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache | ||||
if ! cmp -s ${_tmpdir}/ld.so.cache /compat/linux/etc/ld.so.cache; then | 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 | cat ${_tmpdir}/ld.so.cache > /compat/linux/etc/ld.so.cache | ||||
fi | fi | ||||
rm -rf ${_tmpdir} | rm -rf ${_tmpdir} | ||||
fi | fi | ||||
mount -t linprocfs linprocfs /compat/linux/proc | |||||
if [ "$?" -ne 0 ]; then | |||||
warn "unable to mount /compat/linux/proc" | |||||
fi | |||||
mount -t linsysfs linsysfs /compat/linux/sys | |||||
if [ "$?" -ne 0 ]; then | |||||
warn "unable to mount /compat/linux/sys" | |||||
fi | |||||
# If /compat/linux/dev exists, it will shadow /dev for Linux binaries. | |||||
if [ -e "/compat/linux/dev" ]; then | |||||
warn "/compat/linux/dev should not exist" | |||||
fi | |||||
# XXX: We could mount tmpfs instead, but there is no easy way | |||||
# to create the /dev/shm mountpoint. | |||||
if [ ! -e "/dev/shm" ]; then | |||||
ln -s /tmp /dev/shm | |||||
if [ "$?" -ne 0 ]; then | |||||
warn "unable to create /dev/shm" | |||||
fi | |||||
fi | |||||
} | } | ||||
abi_start() | abi_start() | ||||
{ | { | ||||
local _echostop | local _echostop | ||||
_echostop= | _echostop= | ||||
if checkyesno sysvipc_enable || checkyesno linux_enable; then | if checkyesno sysvipc_enable || checkyesno linux_enable; then | ||||
Show All 12 Lines |