File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/bsp/common/usr/bin Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments