From ba2df7331abb78a93c5a57ce2268a3e005adeea9 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 13 Sep 2023 20:43:48 -0500 Subject: [PATCH] gateware: make sure mtd-utils package is installed Signed-off-by: Robert Nelson --- rootfs/etc/microchip/update-gateware.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootfs/etc/microchip/update-gateware.sh b/rootfs/etc/microchip/update-gateware.sh index 75ed310..573f93f 100644 --- a/rootfs/etc/microchip/update-gateware.sh +++ b/rootfs/etc/microchip/update-gateware.sh @@ -12,6 +12,11 @@ echo "| after Linux has shutdown. echo "| |" echo "================================================================================" +if [ ! -f /usr/sbin/mtd_debug ] ; then + echo "Install mtd-utils package" + exit 2 +fi + read -rsp $'Press any key to continue...\n' -n1 key # Already mounted by default...