45da9952e5
scripts, except for mdconfig* and jail. Such symbols are reserved for the rc.subr internals. Most scripts can be fixed by just declaring _foo symbols as local: few scripts actually need them to be global. Discussed with: dougb in freebsd-rc
51 lines
652 B
Bash
51 lines
652 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'
|
|
kldload ibcs2 > /dev/null 2>&1
|
|
case ${ibcs2_loaders} in
|
|
[Nn][Oo])
|
|
;;
|
|
*)
|
|
for i in ${ibcs2_loaders}; do
|
|
kldload ibcs2_$i > /dev/null 2>&1
|
|
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"
|