]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - etc/rc.d/archdep
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / etc / rc.d / archdep
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: archdep
7 # REQUIRE: mountcritremote
8 # KEYWORD: nojail
9
10 . /etc/rc.subr
11
12 name="archdep"
13 start_cmd="archdep_start"
14 stop_cmd=":"
15
16 archdep_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
44 load_rc_config $name
45 run_rc_command "$1"