abi revision 136224
1#!/bin/sh 2# 3# $FreeBSD: head/etc/rc.d/abi 136224 2004-10-07 13:55:26Z mtm $ 4# 5 6# PROVIDE: abi 7# REQUIRE: LOGIN 8# BEFORE: securelevel 9# KEYWORD: nojail 10 11. /etc/rc.subr 12 13echo -n 'Additional ABI support:' 14 15name="sysvipc" 16rcvar=`set_rcvar` 17start_cmd="sysv_start" 18stop_cmd=":" 19 20sysv_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} 27load_rc_config $name 28run_rc_command "$1" 29 30name="linux" 31rcvar=`set_rcvar` 32start_cmd="linux_start" 33 34linux_start() 35{ 36 echo -n ' linux' 37 if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; 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} 44load_rc_config $name 45run_rc_command "$1" 46 47name="svr4" 48rcvar=`set_rcvar` 49start_precmd="echo -n ' svr4'" 50start_cmd="kldload svr4 > /dev/null 2>&1" 51 52load_rc_config $name 53run_rc_command "$1" 54 55echo '.' 56