1102986Sgordon#!/bin/sh 2102986Sgordon# 3102986Sgordon# $FreeBSD: releng/11.0/etc/rc.d/archdep 193119 2009-05-30 21:51:38Z dougb $ 4102986Sgordon# 5102986Sgordon 6102986Sgordon# PROVIDE: archdep 7155838Sdougb# REQUIRE: mountcritremote 8136224Smtm# KEYWORD: nojail 9102986Sgordon 10102986Sgordon. /etc/rc.subr 11102986Sgordon 12193119Sdougbname="archdep" 13150691Syarstart_cmd="archdep_start" 14150691Syarstop_cmd=":" 15102986Sgordon 16150691Syararchdep_start() 17150691Syar{ 18165664Syar local _arch 19165664Syar 20150753Snyan _arch=`${SYSCTL_N} hw.machine_arch` 21150691Syar case $_arch in 22150691Syar i386) 23179929Smtm # SCO binary emulation 24179929Smtm # 25179929Smtm if checkyesno ibcs2_enable; then 26179929Smtm echo -n 'Initial i386 initialization:' 27179929Smtm echo -n ' ibcs2' 28179929Smtm load_kld ibcs2 29179929Smtm case ${ibcs2_loaders} in 30179929Smtm [Nn][Oo]) 31179929Smtm ;; 32179929Smtm *) 33179929Smtm for i in ${ibcs2_loaders}; do 34179929Smtm load_kld ibcs2_$i 35179929Smtm done 36179929Smtm ;; 37179929Smtm esac 38179929Smtm echo '.' 39179929Smtm fi 40150691Syar ;; 41150691Syar esac 42150691Syar} 43150691Syar 44150691Syarload_rc_config $name 45150691Syarrun_rc_command "$1" 46