]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - etc/rc.d/mountlate
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / etc / rc.d / mountlate
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: mountlate
7 # REQUIRE: DAEMON
8 # BEFORE: LOGIN
9 # KEYWORD: nojail
10
11 . /etc/rc.subr
12
13 name="mountlate"
14 start_cmd="mountlate_start"
15 stop_cmd=":"
16
17 mountlate_start()
18 {
19         local err
20
21         # Mount "late" filesystems.
22         echo -n 'Mounting late file systems:'
23         mount -a -l
24         err=$?
25         echo '.'
26
27         case ${err} in
28         0)
29                 ;;
30         *)
31                 echo 'Mounting /etc/fstab filesystems failed,' \
32                     ' startup aborted'
33                 stop_boot true
34                 ;;
35         esac
36
37         # If we booted a special kernel remove the record
38         # so we will boot the default kernel next time.
39         if [ -x /sbin/nextboot ]; then
40                 /sbin/nextboot -D
41         fi
42 }
43
44 load_rc_config $name
45 run_rc_command "$1"