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-03-06 14:39:33 +00:00
|
|
|
local err
|
|
|
|
|
2006-07-12 16:05:51 +00:00
|
|
|
# Mount "late" filesystems.
|
|
|
|
echo -n 'Mounting late file systems:'
|
|
|
|
mount -a -l
|
2008-03-06 14:39:33 +00:00
|
|
|
err=$?
|
2006-07-12 16:05:51 +00:00
|
|
|
echo '.'
|
|
|
|
|
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"
|