config root man

Current Path : /compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/3760/root/etc/rc.d/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/3760/root/etc/rc.d/abi

#!/bin/sh
#
# $FreeBSD: release/9.1.0/etc/rc.d/abi 180563 2008-07-16 19:22:48Z dougb $
#

# PROVIDE: abi
# REQUIRE: archdep
# KEYWORD: nojail

. /etc/rc.subr

name="abi"
start_cmd="${name}_start"
stop_cmd=":"

sysv_start()
{
	echo -n ' sysvipc'
	load_kld sysvmsg
	load_kld sysvsem
	load_kld sysvshm
}

linux_start()
{
	local _tmpdir

	echo -n ' linux'
	load_kld -e 'linux(aout|elf)' linux
	if [ -x /compat/linux/sbin/ldconfigDisabled ]; then
		_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
}

svr4_start()
{
	echo -n ' svr4'
	load_kld -m svr4elf svr4
}

abi_start()
{
	local _echostop

	_echostop=
	if checkyesno sysvipc_enable || checkyesno linux_enable || checkyesno svr4_enable; then
		echo -n 'Additional ABI support:'
		_echostop=yes
	fi

	checkyesno sysvipc_enable && sysv_start
	checkyesno linux_enable && linux_start
	checkyesno svr4_enable && svr4_start

	[ -n "${_echostop}" ] && echo '.'
}

load_rc_config $name
run_rc_command "$1"

Man Man