2006-07-12 16:05:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: mountlate
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: LOGIN
|
|
|
|
# KEYWORD: nojail
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="mountlate"
|
|
|
|
start_cmd="mountlate_start"
|
|
|
|
stop_cmd=":"
|
|
|
|
|
|
|
|
mountlate_start()
|
|
|
|
{
|
2008-06-22 15:40:19 +00:00
|
|
|
local err latefs
|
2008-03-06 14:39:33 +00:00
|
|
|
|
2006-07-12 16:05:51 +00:00
|
|
|
# Mount "late" filesystems.
|
2008-06-22 15:40:19 +00:00
|
|
|
#
|
|
|
|
err=0
|
2013-05-04 14:00:16 +00:00
|
|
|
echo -n 'Mounting late file systems:'
|
|
|
|
mount -a -L
|
|
|
|
err=$?
|
|
|
|
echo '.'
|
2006-07-12 16:05:51 +00:00
|
|
|
|
2008-03-06 14:39:33 +00:00
|
|
|
case ${err} in
|
2006-07-12 16:05:51 +00:00
|
|
|
0)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo 'Mounting /etc/fstab filesystems failed,' \
|
|
|
|
' startup aborted'
|
2007-05-18 12:04:41 +00:00
|
|
|
stop_boot true
|
2006-07-12 16:05:51 +00:00
|
|
|
;;
|
|
|
|
esac
|
2008-03-11 17:20:34 +00:00
|
|
|
|
|
|
|
# If we booted a special kernel remove the record
|
|
|
|
# so we will boot the default kernel next time.
|
|
|
|
if [ -x /sbin/nextboot ]; then
|
|
|
|
/sbin/nextboot -D
|
|
|
|
fi
|
2006-07-12 16:05:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|