Pre-2.0 release, MFC some driver fixes related to interrupt management.
[dragonfly.git] / etc / rc.d / root
blob2b14a9c29c9f600bc3bb46479d2459bb00272fc5
1 #!/bin/sh
3 # $NetBSD: root,v 1.2 2000/05/13 08:45:09 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/root,v 1.5 2002/10/31 02:06:05 gordon Exp $
5 # $DragonFly: src/etc/rc.d/root,v 1.4 2005/11/19 21:47:32 swildner Exp $
8 # PROVIDE: root
9 # REQUIRE: fsck
11 . /etc/rc.subr
13 name="root"
14 start_cmd="root_start"
15 stop_cmd=":"
17 root_start()
19 # root normally must be read/write, but if this is a BOOTP NFS
20 # diskless boot it does not have to be.
22 case ${root_rw_mount} in
23 [Nn][Oo] | '')
26 if ! mount -u -o rw /; then
27 echo 'Mounting root filesystem rw failed, startup aborted'
28 exit 1
31 esac
32 umount -a >/dev/null 2>&1
33 mount /
34 # If we booted a special kernel remove the record
35 # so we will boot the default kernel next time.
36 if [ -e /boot/nextkernel ]; then
37 rm -f /boot/nextkernel
41 load_rc_config $name
42 run_rc_command "$1"