Set an example of using load_kld() from rc.subr.

This commit is contained in:
Yaroslav Tykhiy 2006-06-21 09:53:25 +00:00
parent 48ecc1efc2
commit 78004009df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159830

View File

@ -16,17 +16,15 @@ start_cmd=":"
sysv_start()
{
echo -n ' sysvipc'
kldload sysvmsg >/dev/null 2>&1
kldload sysvsem >/dev/null 2>&1
kldload sysvshm >/dev/null 2>&1
load_kld sysvmsg
load_kld sysvsem
load_kld sysvshm
}
linux_start()
{
echo -n ' linux'
if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then
kldload linux > /dev/null 2>&1
fi
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
@ -40,7 +38,7 @@ linux_start()
svr4_start()
{
echo -n ' svr4'
kldload svr4 > /dev/null 2>&1
load_kld -m svr4elf svr4
}
abi_prestart()