- Add radio tap support
[dragonfly/port-amd64.git] / etc / rc.d / abi
blobe5259ea8bff09c8d55f776311dab58a55a55e05e
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.4 2006/05/22 06:26:29 swildner 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 -v | grep -E 'linux(aout|elf)' > /dev/null; 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 '.'