Skip to content

Commit 6f9df54

Browse files
committed
Enable direct flashing method in armbian-install menu
armbian/configng#705
1 parent 6f4e67b commit 6f9df54

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/bsp/common/usr/bin/armbian-install

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,12 @@ main()
929929
$(type -t write_uboot_platform_mtd) == function ]] && options+=(7 'Install/Update the bootloader on MTD Flash')
930930
fi
931931

932+
# show flasher if there are available block devices
933+
armbian-config --api module_images status >/dev/null
934+
if [[ $? -eq 0 ]]; then
935+
options+=("8" "Download and flash clean image")
936+
fi
937+
932938
[[ ${#options[@]} -eq 0 || "$root_uuid" == "$emmcuuid" || "$root_uuid" == "/dev/nand2" ]] && \
933939
dialog --ok-label 'Cancel' --title ' Warning ' --backtitle "$backtitle" --colors --no-collapse --msgbox '\n\Z1There are no targets. Please check your drives.\Zn' 7 52
934940
cmd=(dialog --title 'Choose an option:' --backtitle "$backtitle" --menu "\nCurrent root: $root_uuid \n $rootchip (${root_partition_device})\n" 14 75 7)
@@ -1012,6 +1018,10 @@ main()
10121018
write_uboot_to_mtd_flash "$DIR" "$mtdcheck"
10131019
return
10141020
;;
1021+
8)
1022+
armbian-config --cmd FLASH1
1023+
return
1024+
;;
10151025

10161026
*)
10171027
title='UEFI install to internal drive'

0 commit comments

Comments
 (0)