From within a virtual kernel, make /sbin/shutdown and /sbin/halt actually
[dragonfly/vkernel-mp.git] / etc / rc.d / archdep
blob862afe769124d58d9c2160a8d1a85d106dd9d8dc
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/archdep,v 1.6 2006/08/26 00:37:08 swildner 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 _arch=`${SYSCTL_N} hw.machine`
26 echo -n "Initial $_arch initialization:"
27 case $_arch in
28 i386)
30 ia64)
31 unaligned_warnings
33 esac
35 dummy_rc_command "$1"
37 echo '.'