Subversion Repositories configs

Rev

Rev 208 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
209 - 1
#! /bin/sh
208 - 2
# SPDX-License-Identifier: LGPL-2.1+
3
set -e
4
 
5
[ -d ${pkgdatadir:?} ]
6
# shellcheck source=/dev/null
7
. "$pkgdatadir/grub-mkconfig_lib"
8
 
9
if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
10
   ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
209 - 11
      . /var/lib/fwupd/uefi_capsule.conf
208 - 12
      if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
13
      echo "Adding Linux Firmware Updater entry" >&2
14
cat << EOF
15
menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
16
EOF
17
      ${grub_probe:?}
18
      prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
19
cat << EOF
20
	chainloader ${EFI_PATH}
21
}
22
EOF
23
      fi
24
fi