set default=2
set timeout=-1

if loadfont $prefix/font.pf2 ; then
	set gfxmode=640x480
	set gfxpayload=keep
	insmod vbe
	insmod gfxterm
	terminal_output gfxterm
fi

insmod png
if background_image $prefix/splash.png ; then
	set color_normal=white/black
	set color_highlight=black/white
else
	set menu_color_normal=cyan/blue
	set menu_color_highlight=white/blue
fi

insmod play
play 480 440 1

menuentry "Debian GNU/kFreeBSD installer boot menu" {
	true
}

menuentry "" {
	true
}

menuentry "Default install" {
	echo "Loading ..."
	kfreebsd $prefix/@KERNEL@
	kfreebsd_module $prefix/initrd.gz type=mfs_root
}

menuentry "Automated install" {
	echo "Loading ..."
	kfreebsd $prefix/@KERNEL@
	kfreebsd_module $prefix/initrd.gz type=mfs_root
	set kFreeBSD.auto=true
	set kFreeBSD.priority=critical
}

menuentry "Expert install" {
	echo "Loading ..."
	kfreebsd $prefix/@KERNEL@
	kfreebsd_module $prefix/initrd.gz type=mfs_root
	set kFreeBSD.priority=low
}
