Check if /sbin/nextboot exists before running it.

PR:		93466
Submitted by:	Mats Palmgren
This commit is contained in:
Ruslan Ermilov 2006-02-17 08:34:01 +00:00
parent 431fe15da4
commit 2bf76d274f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155775

View File

@ -34,7 +34,9 @@ root_start()
# If we booted a special kernel remove the record
# so we will boot the default kernel next time.
/sbin/nextboot -D
if [ -x /sbin/nextboot ]; then
/sbin/nextboot -D
fi
}
load_rc_config $name