kernel/msdosfs: Add pathconf(3) support for FILESIZEBITS.
[dragonfly.git] / etc / rc.d / root
blobc1eb258544bcade498458ae6a95b05012d401a5b
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
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"