Set an example of using load_kld() from rc.subr.
This commit is contained in:
parent
48ecc1efc2
commit
78004009df
12
etc/rc.d/abi
12
etc/rc.d/abi
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user