2002-09-05 20:29:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: archdep
|
2006-02-19 08:18:48 +00:00
|
|
|
# REQUIRE: mountcritremote
|
2004-10-07 13:55:26 +00:00
|
|
|
# KEYWORD: nojail
|
2002-09-05 20:29:18 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name=archdep
|
2005-09-28 16:24:47 +00:00
|
|
|
start_cmd="archdep_start"
|
|
|
|
stop_cmd=":"
|
2002-09-05 20:29:18 +00:00
|
|
|
|
2005-09-28 16:24:47 +00:00
|
|
|
archdep_start()
|
|
|
|
{
|
2006-12-30 22:53:20 +00:00
|
|
|
local _arch
|
|
|
|
|
2005-09-30 13:27:36 +00:00
|
|
|
_arch=`${SYSCTL_N} hw.machine_arch`
|
2005-09-28 16:24:47 +00:00
|
|
|
case $_arch in
|
|
|
|
i386)
|
2008-06-22 15:57:50 +00:00
|
|
|
# SCO binary emulation
|
|
|
|
#
|
|
|
|
if checkyesno ibcs2_enable; then
|
|
|
|
echo -n 'Initial i386 initialization:'
|
|
|
|
echo -n ' ibcs2'
|
|
|
|
load_kld ibcs2
|
|
|
|
case ${ibcs2_loaders} in
|
|
|
|
[Nn][Oo])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
for i in ${ibcs2_loaders}; do
|
|
|
|
load_kld ibcs2_$i
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
echo '.'
|
|
|
|
fi
|
2005-09-28 16:24:47 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|