+2009-04-13 Robert Millan <rmh@aybabtu.com>
+
+ * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
+ that name for menuentries when appropiate.
+
2009-04-13 Felix Zielcke <fzielcke@z-51.de>
* util/grub.d/10_freebsd.in: Add a missing `fi'.
#! /bin/sh -e
# grub-mkconfig helper script.
-# Copyright (C) 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008,2009 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
libdir=@libdir@
. ${libdir}/grub/grub-mkconfig_lib
+case "${GRUB_DISTRIBUTOR}" in
+ Debian) OS="${GRUB_DISTRIBUTOR} GNU/kFreeBSD" ;;
+ *) OS="FreeBSD" ;;
+esac
+
if test -e /boot/devices.hints ; then
devices=/boot/devices.hints
fi
kfreebsd_fs=${GRUB_FS}
cat << EOF
-menuentry "FreeBSD" {
+menuentry "${OS}" {
EOF
prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
cat << EOF