Deleted Added
full compact
mountlate (177063) mountlate (179928)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/mountlate 177061 2008-03-11 17:20:34Z delphij $
3# $FreeBSD: head/etc/rc.d/mountlate 179928 2008-06-22 15:40:19Z mtm $
4#
5
6# PROVIDE: mountlate
7# REQUIRE: DAEMON
8# BEFORE: LOGIN
9# KEYWORD: nojail
10
11. /etc/rc.subr
12
13name="mountlate"
14start_cmd="mountlate_start"
15stop_cmd=":"
16
17mountlate_start()
18{
4#
5
6# PROVIDE: mountlate
7# REQUIRE: DAEMON
8# BEFORE: LOGIN
9# KEYWORD: nojail
10
11. /etc/rc.subr
12
13name="mountlate"
14start_cmd="mountlate_start"
15stop_cmd=":"
16
17mountlate_start()
18{
19 local err
19 local err latefs
20
21 # Mount "late" filesystems.
20
21 # Mount "late" filesystems.
22 echo -n 'Mounting late file systems:'
23 mount -a -l
24 err=$?
25 echo '.'
22 #
23 err=0
24 latefs=
25 # / (root) fs is always remounted, so remove from list
26 latefs="`/sbin/mount -d -a -l | grep -v ' /$'`"
27 case ${latefs} in
28 '')
29 ;;
30 *)
31 echo -n 'Mounting late file systems:'
32 mount -a -l
33 err=$?
34 echo '.'
35 ;;
36 esac
26
27 case ${err} in
28 0)
29 ;;
30 *)
31 echo 'Mounting /etc/fstab filesystems failed,' \
32 ' startup aborted'
33 stop_boot true

--- 12 unchanged lines hidden ---
37
38 case ${err} in
39 0)
40 ;;
41 *)
42 echo 'Mounting /etc/fstab filesystems failed,' \
43 ' startup aborted'
44 stop_boot true

--- 12 unchanged lines hidden ---