1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/mountlate 169668 2007-05-18 12:04:41Z mtm $
| 3# $FreeBSD: head/etc/rc.d/mountlate 176873 2008-03-06 14:39:33Z 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 20
|
19 # Mount "late" filesystems. 20 echo -n 'Mounting late file systems:' 21 mount -a -l
| 21 # Mount "late" filesystems. 22 echo -n 'Mounting late file systems:' 23 mount -a -l
|
| 24 err=$?
|
22 echo '.' 23
| 25 echo '.' 26
|
24 case $? in
| 27 case ${err} in
|
25 0) 26 ;; 27 *) 28 echo 'Mounting /etc/fstab filesystems failed,' \ 29 ' startup aborted' 30 stop_boot true 31 ;; 32 esac 33} 34 35load_rc_config $name 36run_rc_command "$1"
| 28 0) 29 ;; 30 *) 31 echo 'Mounting /etc/fstab filesystems failed,' \ 32 ' startup aborted' 33 stop_boot true 34 ;; 35 esac 36} 37 38load_rc_config $name 39run_rc_command "$1"
|