151
151
# Extra indentation to add to menu entries in a submenu. We're not in a submenu
152
152
# yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
156
156
while [ "x$kernels" != "x" ] ; do
157
157
kernel=`version_find_latest $kernels`
160
160
hurd_entry "$kernel" simple
163
163
# TRANSLATORS: %s is replaced with an OS name
164
164
echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnuhurd-advanced-$(grub_get_device_id "${GRUB_DEVICE_BOOT}")' {"
167
168
hurd_entry "$kernel" advanced
168
169
hurd_entry "$kernel" recovery
170
171
kernels=`echo $kernels | tr ' ' '\n' | grep -vx $kernel | tr '\n' ' '`
174
174
# If at least one kernel was found, then we need to
175
175
# add a closing '}' for the submenu command.