1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/etc/rc.d/archdep
Yaroslav Tykhiy 0c30639059 Use $required_modules wherever suitable. Use load_kld() in special
cases.  So we get rid of quite a few lines of duplicated code.
2006-12-31 10:37:18 +00:00

51 lines
620 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: archdep
# REQUIRE: mountcritremote
# KEYWORD: nojail
. /etc/rc.subr
name=archdep
start_cmd="archdep_start"
stop_cmd=":"
# SCO binary emulation
#
ibcs2_compat()
{
if checkyesno ibcs2_enable; then
echo -n ' ibcs2'
load_kld ibcs2
case ${ibcs2_loaders} in
[Nn][Oo])
;;
*)
for i in ${ibcs2_loaders}; do
load_kld ibcs2_$i
done
;;
esac
fi
}
archdep_start()
{
local _arch
_arch=`${SYSCTL_N} hw.machine_arch`
echo -n "Initial $_arch initialization:"
case $_arch in
i386)
ibcs2_compat
;;
esac
echo '.'
}
load_rc_config $name
run_rc_command "$1"