Merge branch 'vendor/TCPDUMP' and update build for the update.
[dragonfly.git] / etc / rc.d / abi
1 #!/bin/sh
2 #
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 $
5 #
6
7 # PROVIDE: abi
8 # REQUIRE: LOGIN
9 # BEFORE:  securelevel
10
11 . /etc/rc.subr
12
13 echo -n 'Additional ABI support:'
14
15 name="sysvipc"
16 rcvar=`set_rcvar`
17 start_cmd="sysv_start"
18 stop_cmd=":"
19
20 sysv_start()
21 {
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
26 }
27 load_rc_config $name
28 run_rc_command "$1"
29
30 name="linux"
31 rcvar=`set_rcvar`
32 start_cmd="linux_start"
33
34 linux_start()
35 {
36         echo -n ' linux'
37         if ! kldstat -q -m "linuxaout" || ! kldstat -q -m "linuxelf"; then
38                 kldload linux > /dev/null 2>&1
39         fi
40         if [ -x /compat/linux/sbin/ldconfig ]; then
41                 /compat/linux/sbin/ldconfig
42         fi
43 }
44 load_rc_config $name
45 run_rc_command "$1"
46
47 echo '.'