Port EST driver from NetBSD, as it has better support for newer CPUs
[dragonfly.git] / etc / rc.d / archdep
blob017f72af6c29d67323822f2aef0fff4f6bd4d8fd
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/archdep,v 1.5 2003/05/06 00:09:51 obrien Exp $
4 # $DragonFly: src/etc/rc.d/Attic/archdep,v 1.5 2006/05/20 18:26:29 dillon Exp $
7 # PROVIDE: archdep
8 # REQUIRE: LOGIN
9 # BEFORE: abi
11 . /etc/rc.subr
13 name=archdep
14 load_rc_config $name
16 # should we print out unaligned access warnings?
18 unaligned_warnings()
20 if ! checkyesno unaligned_print; then
21 sysctl machdep.unaligned_print=0
25 # Alpha OSF/1 binary emulation
27 osf1_compat()
29 if checkyesno osf1_enable; then
30 echo -n ' OSF/1'
31 if ! kldstat -v | grep osf1_ecoff > /dev/null; then
32 kldload osf1 > /dev/null 2>&1
37 _arch=`${SYSCTL_N} hw.machine`
38 echo -n "Initial $_arch initialization:"
39 case $_arch in
40 i386)
42 alpha)
43 osf1_compat
44 unaligned_warnings
46 ia64)
47 unaligned_warnings
49 esac
51 dummy_rc_command "$1"
53 echo '.'