diff options
author | MatMoul <matmoul@gmail.com> | 2015-10-10 23:09:19 +0200 |
---|---|---|
committer | MatMoul <matmoul@gmail.com> | 2015-10-10 23:09:19 +0200 |
commit | 207ad1e72cb42a7a2029cc01e6d64da4c6ee6496 (patch) | |
tree | 462c07b5a81c3a105ceb7ef2d48055166888ca8e | |
parent | dd20f1fda1975584391ae5576a4f0685184f49c4 (diff) | |
download | hyperfi-207ad1e72cb42a7a2029cc01e6d64da4c6ee6496.tar.lz hyperfi-207ad1e72cb42a7a2029cc01e6d64da4c6ee6496.tar.xz hyperfi-207ad1e72cb42a7a2029cc01e6d64da4c6ee6496.zip |
Remove EFI Features on no EFI computer
-rw-r--r-- | archfi | 51 |
1 files changed, 28 insertions, 23 deletions
@@ -960,30 +960,35 @@ archinstallbootloader(){ "${options[@]}" \ 3>&1 1>&2 2>&3) if [ "$?" = "0" ]; then - options=() - if [ "$efimode" = "1" ]; then - options+=("EFI" "") - options+=("BIOS" "") - options+=("BIOS+EFI" "") - elif [ "$efimode" = "2" ]; then - options+=("BIOS+EFI" "") - options+=("BIOS" "") - options+=("EFI" "") + if [ "$eficomputer" == "1" ]; then + options=() + if [ "$efimode" = "1" ]; then + options+=("EFI" "") + options+=("BIOS" "") + options+=("BIOS+EFI" "") + elif [ "$efimode" = "2" ]; then + options+=("BIOS+EFI" "") + options+=("BIOS" "") + options+=("EFI" "") + else + options+=("BIOS" "") + options+=("EFI" "") + options+=("BIOS+EFI" "") + fi + sel=$(whiptail --backtitle "$apptitle" --title "${txtinstall//%1/bootloader}" --menu "" --cancel-button "Back" 0 0 0 \ + "${options[@]}" \ + 3>&1 1>&2 2>&3) + if [ "$?" = "0" ]; then + clear + case $sel in + "BIOS") archchroot installbootloader $device;; + "EFI") archchroot installbootloaderefi $device;; + "BIOS+EFI") archchroot installbootloaderefiusb $device;; + esac + pressanykey + fi else - options+=("BIOS" "") - options+=("EFI" "") - options+=("BIOS+EFI" "") - fi - sel=$(whiptail --backtitle "$apptitle" --title "${txtinstall//%1/bootloader}" --menu "" --cancel-button "Back" 0 0 0 \ - "${options[@]}" \ - 3>&1 1>&2 2>&3) - if [ "$?" = "0" ]; then - clear - case $sel in - "BIOS") archchroot installbootloader $device;; - "EFI") archchroot installbootloaderefi $device;; - "BIOS+EFI") archchroot installbootloaderefiusb $device;; - esac + archchroot installbootloader $device;; pressanykey fi fi |