kernel - Fix issue in UFS related to new nvtruncbuf() API use
[dragonfly.git] / etc / rc.d / abi
blobaa2ff3e2400f00d379074d94408cfe0d19d4fbec
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/abi,v 1.2 2003/05/05 15:38:41 mtm Exp $
4 # $DragonFly: src/etc/rc.d/abi,v 1.6 2008/01/09 18:51:08 josepht Exp $
7 # PROVIDE: abi
8 # REQUIRE: LOGIN
9 # BEFORE: securelevel
11 . /etc/rc.subr
13 echo -n 'Additional ABI support:'
15 name="sysvipc"
16 rcvar=`set_rcvar`
17 start_cmd="sysv_start"
18 stop_cmd=":"
20 sysv_start()
22 echo -n ' sysvipc'
23 kldload sysvmsg >/dev/null 2>&1
24 kldload sysvsem >/dev/null 2>&1
25 kldload sysvshm >/dev/null 2>&1
27 load_rc_config $name
28 run_rc_command "$1"
30 name="linux"
31 rcvar=`set_rcvar`
32 start_cmd="linux_start"
34 linux_start()
36 echo -n ' linux'
37 if ! kldstat -q -m "linuxaout" || ! kldstat -q -m "linuxelf"; then
38 kldload linux > /dev/null 2>&1
40 if [ -x /compat/linux/sbin/ldconfig ]; then
41 /compat/linux/sbin/ldconfig
44 load_rc_config $name
45 run_rc_command "$1"
47 echo '.'