2N/A# grub-mkconfig helper script. 2N/A# Copyright (C) 2006,2007,2008,2009,2010,2011 Free Software Foundation, Inc. 2N/A# GRUB is free software: you can redistribute it and/or modify 2N/A# it under the terms of the GNU General Public License as published by 2N/A# the Free Software Foundation, either version 3 of the License, or 2N/A# (at your option) any later version. 2N/A# GRUB is distributed in the hope that it will be useful, 2N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2N/A# GNU General Public License for more details. 2N/A# You should have received a copy of the GNU General Public License 2N/Acase "${GRUB_DISTRIBUTOR}" in 2N/A CLASS=
"--class freebsd --class bsd ${CLASS}" 2N/A if ! test -e "${module_dir}/${mod}.ko" ; then 2N/A if [ "${allow_fail}" = "true" ] ; then 2N/A # Print an error and fail. 2N/A if [ -z "${prepare_module_dir_cache}" ]; then 2N/A kfreebsd_module_elf ${module_dir_rel}/${mod}.ko 2N/A printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${version}" 2N/A if [ -z "${prepare_boot_cache}" ]; then 2N/A kfreebsd ${rel_dirname}/${basename} ${args} 2N/A if test -n "${devices}" ; then 2N/A kfreebsd_loadenv ${devices_rel_dirname}/${devices_basename} 2N/A kfreebsd_module ${rel_dirname}/zfs/zpool.cache type=/boot/zfs/zpool.cache 2N/A set kFreeBSD.vfs.root.mountfrom=${kfreebsd_fs}:${kfreebsd_device} 2N/A set kFreeBSD.vfs.root.mountfrom.options=rw 2N/A # filesystem name (empty string for the main filesystem) 2N/A if [
"x${GRUB_DISTRIBUTOR}" =
"xDebian" ] \
2N/A if test -e
"$i" ;
then 2N/A if test -n
"${module_dir}" ;
then 2N/A echo "Found kernel module directory: ${module_dir}" >&
2 2N/A if [
"x${GRUB_DISABLE_RECOVERY}" !=
"xtrue" ];
then