#
# By Chih-Wei Huang <cwhuang@linux.org.tw>
-# Last updated 2018/01/31
+# Last updated 2018/02/06
#
# License: GNU Public License
# We explicitely grant the right to use the scripts
[ $? -ne 0 ] && return 255
fi
- [ -n "$efi" ] && adialog --title " Confirm " --no-label Skip --defaultno --yesno \
+ [ -n "$efi" ] && adialog --title " Confirm " --no-label Skip --yesno \
"\n Do you want to install EFI GRUB2?" 7 39
if [ $? -eq 0 ]; then
for i in `list_disks`; do
efibootmgr | grep -Eo ".{0,6}Android-x86" | cut -c1-4 > /tmp/efientries
if [ -s /tmp/efientries ]; then
set_answer_if_auto 1
- adialog --title " Question " --defaultno --yesno "\nEFI boot entries for previous Android-x86 installations were found.\n\nDo you wish to delete them?" 10 61
+ adialog --title " Question " --yesno "\nEFI boot entries for previous Android-x86 installations were found.\n\nDo you wish to delete them?" 10 61
[ $? -eq 0 ] && while read entry; do efibootmgr -Bb "$entry" > /dev/tty4 2>&1; done < /tmp/efientries
fi
efibootmgr -v -c -d /dev/$disk -p $esp -L "Android-x86 $VER" -l /efi/Android/$bootefi > /dev/tty4 2>&1