File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/bsp/common/usr/bin Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -929,6 +929,14 @@ 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+ if command -v armbian-config > /dev/null && [ -x " $( command -v armbian-config) " ]; then
934+ armbian-config --api module_images status > /dev/null
935+ if [[ $? -eq 0 ]]; then
936+ options+=(" 8" " Download and flash clean image" )
937+ fi
938+ fi
939+
932940 [[ ${# options[@]} -eq 0 || " $root_uuid " == " $emmcuuid " || " $root_uuid " == " /dev/nand2" ]] && \
933941 dialog --ok-label ' Cancel' --title ' Warning ' --backtitle " $backtitle " --colors --no-collapse --msgbox ' \n\Z1There are no targets. Please check your drives.\Zn' 7 52
934942 cmd= (dialog --title ' Choose an option:' --backtitle " $backtitle " --menu " \nCurrent root: $root_uuid \n $rootchip (${root_partition_device} )\n" 14 75 7)
@@ -1012,6 +1020,10 @@ main()
10121020 write_uboot_to_mtd_flash " $DIR " " $mtdcheck "
10131021 return
10141022 ;;
1023+ 8)
1024+ armbian-config --cmd FLASH1
1025+ return
1026+ ;;
10151027
10161028 * )
10171029 title= ' UEFI install to internal drive'
You can’t perform that action at this time.
0 commit comments