fixes the manual launch of the installation script from USB media (#3377)

This commit is contained in:
Oleg 2022-01-05 19:54:30 +03:00 committed by GitHub
parent 2b4e9e6618
commit 3f8da052e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -630,15 +630,15 @@ main()
# Check if we run it from SD card
# TODO: Disable/remove this in the future
case ${root_partition_device} in
/dev/mmcblk*) # mmc device, we can continue
:
;;
*)
dialog --title "$title" --backtitle "$backtitle" --colors --infobox '\n\Z1 This tool must run from SD-card! \Zn' 5 60
exit 15
;;
esac
# case ${root_partition_device} in
# /dev/mmcblk*) # mmc device, we can continue
# :
# ;;
# *)
# dialog --title "$title" --backtitle "$backtitle" --colors --infobox '\n\Z1 This tool must run from SD-card! \Zn' 5 60
# exit 15
# ;;
# esac
[ -f $logfile ] && echo -e '\n\n\n' >> $logfile
LANG=C echo -e "$(date): Start ${0##*/}.\n" >> $logfile