1#!/bin/sh 2# 3# $FreeBSD: releng/11.0/etc/rc.d/archdep 193119 2009-05-30 21:51:38Z dougb $ 4# 5 6# PROVIDE: archdep 7# REQUIRE: mountcritremote 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 12name="archdep" 13start_cmd="archdep_start" 14stop_cmd=":" 15 16archdep_start() 17{ 18 local _arch 19 20 _arch=`${SYSCTL_N} hw.machine_arch` 21 case $_arch in 22 i386) 23 # SCO binary emulation 24 # 25 if checkyesno ibcs2_enable; then 26 echo -n 'Initial i386 initialization:' 27 echo -n ' ibcs2' 28 load_kld ibcs2 29 case ${ibcs2_loaders} in 30 [Nn][Oo]) 31 ;; 32 *) 33 for i in ${ibcs2_loaders}; do 34 load_kld ibcs2_$i 35 done 36 ;; 37 esac 38 echo '.' 39 fi 40 ;; 41 esac 42} 43 44load_rc_config $name 45run_rc_command "$1" 46