mountlate (180563) | mountlate (250235) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/etc/rc.d/mountlate 180563 2008-07-16 19:22:48Z dougb $ | 3# $FreeBSD: head/etc/rc.d/mountlate 250235 2013-05-04 14:00:16Z crees $ |
4# 5 6# PROVIDE: mountlate 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9# KEYWORD: nojail 10 11. /etc/rc.subr --- 4 unchanged lines hidden (view full) --- 16 17mountlate_start() 18{ 19 local err latefs 20 21 # Mount "late" filesystems. 22 # 23 err=0 | 4# 5 6# PROVIDE: mountlate 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9# KEYWORD: nojail 10 11. /etc/rc.subr --- 4 unchanged lines hidden (view full) --- 16 17mountlate_start() 18{ 19 local err latefs 20 21 # Mount "late" filesystems. 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 | 24 echo -n 'Mounting late file systems:' 25 mount -a -L 26 err=$? 27 echo '.' |
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 --- | 28 29 case ${err} in 30 0) 31 ;; 32 *) 33 echo 'Mounting /etc/fstab filesystems failed,' \ 34 ' startup aborted' 35 stop_boot true --- 12 unchanged lines hidden --- |