]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - etc/rc.d/archdep
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.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 # SCO binary emulation
17 #
18 ibcs2_compat()
19 {
20         if checkyesno ibcs2_enable; then
21                 echo -n ' ibcs2'
22                 load_kld ibcs2
23                 case ${ibcs2_loaders} in
24                 [Nn][Oo])
25                         ;;
26                 *)
27                         for i in ${ibcs2_loaders}; do
28                                 load_kld ibcs2_$i
29                         done
30                         ;;
31                 esac
32         fi
33 }
34
35 archdep_start()
36 {
37         local _arch
38
39         _arch=`${SYSCTL_N} hw.machine_arch`
40         echo -n "Initial $_arch initialization:"
41         case $_arch in
42         i386)
43                 ibcs2_compat
44                 ;;
45         esac
46         echo '.'
47 }
48
49 load_rc_config $name
50 run_rc_command "$1"