archdep revision 179929
1157642Sps#!/bin/sh 2169271Sdavidch# 3157642Sps# $FreeBSD: head/etc/rc.d/archdep 179929 2008-06-22 15:57:50Z mtm $ 4157642Sps# 5157642Sps 6157642Sps# PROVIDE: archdep 7157642Sps# REQUIRE: mountcritremote 8157642Sps# KEYWORD: nojail 9157642Sps 10157642Sps. /etc/rc.subr 11157642Sps 12157642Spsname=archdep 13157642Spsstart_cmd="archdep_start" 14157642Spsstop_cmd=":" 15157642Sps 16157642Spsarchdep_start() 17157642Sps{ 18157642Sps local _arch 19157642Sps 20157642Sps _arch=`${SYSCTL_N} hw.machine_arch` 21157642Sps case $_arch in 22157642Sps i386) 23157642Sps # SCO binary emulation 24157642Sps # 25157642Sps if checkyesno ibcs2_enable; then 26157642Sps echo -n 'Initial i386 initialization:' 27157642Sps echo -n ' ibcs2' 28157642Sps load_kld ibcs2 29157642Sps case ${ibcs2_loaders} in 30157642Sps [Nn][Oo]) 31157642Sps ;; 32157642Sps *) 33157642Sps for i in ${ibcs2_loaders}; do 34157642Sps load_kld ibcs2_$i 35157642Sps done 36157642Sps ;; 37157642Sps esac 38157642Sps echo '.' 39157642Sps fi 40157642Sps ;; 41157642Sps esac 42157642Sps} 43157642Sps 44157642Spsload_rc_config $name 45157642Spsrun_rc_command "$1" 46157642Sps