Cope with the file rename by changing rc variables.

This commit is contained in:
Rui Paulo 2008-08-21 00:04:19 +00:00
parent 9d5a92ee43
commit 20c78c6e69

View File

@ -3,18 +3,18 @@
# $FreeBSD$
#
# PROVIDE: kernel
# PROVIDE: kernel_symlink
# REQUIRE: mountcritremote
# KEYWORD: nojail
. /etc/rc.subr
name="kernel"
name="kernel_symlink"
rcvar=`set_rcvar`
start_cmd="kernel_start"
start_cmd="kernel_symlink_start"
stop_cmd=":"
kernel_start()
kernel_symlink_start()
{
bootdir=$(dirname $(sysctl -n kern.bootfile))
if [ "$bootdir" != /boot/kernel ] ; then