set timeout=-1

if loadfont $prefix/font.pf2 ; then
	set gfxmode=640x480
	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

menuentry "Default install" {
	echo "Loading ..."
	kfreebsd $prefix/kfreebsd.gz
	kfreebsd_module $prefix/initrd.gz type=mfs_root
	set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0
}

menuentry "Automated install" {
	echo "Loading ..."
	kfreebsd $prefix/kfreebsd.gz
	kfreebsd_module $prefix/initrd.gz type=mfs_root
	set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0
	set kFreeBSD.auto=true
	set kFreeBSD.priority=critical
}

menuentry "Expert install" {
	echo "Loading ..."
	kfreebsd $prefix/kfreebsd.gz
	kfreebsd_module $prefix/initrd.gz type=mfs_root
	set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0
	set kFreeBSD.priority=low
}
