1#!/bin/sh 2# 3# 4 5# PROVIDE: mountlate 6# REQUIRE: DAEMON 7# BEFORE: LOGIN 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 12name="mountlate" 13desc="Mount filesystems with \"late\" option from /etc/fstab" 14start_cmd="mountlate_start" 15stop_cmd=":" 16 17mountlate_start() 18{ 19 local err latefs 20 21 # Mount "late" filesystems. 22 # 23 err=0 24 echo -n 'Mounting late filesystems:' 25 mount -a -L 26 err=$? 27 echo '.' 28 29 case ${err} in 30 0) 31 ;; 32 *) 33 echo 'Mounting /etc/fstab filesystems failed,' \ 34 'startup aborted' 35 stop_boot true 36 ;; 37 esac 38 39 # If we booted a special kernel remove the record 40 # so we will boot the default kernel next time. 41 if [ -x /sbin/nextboot ]; then 42 /sbin/nextboot -D 43 fi 44} 45 46load_rc_config $name 47 48# mounting shall not be performed in a svcj 49mountlate_svcj="NO" 50 51run_rc_command "$1" 52