From dcfb45d88bdae8605af42d2c47fdde2af83fee00 Mon Sep 17 00:00:00 2001 From: Paul Whalen Date: Aug 29 2017 19:45:59 +0000 Subject: rpi-firmware-update: make sure fw is installed, if not install. --- diff --git a/rpi-firmware-update b/rpi-firmware-update index 9c4e9d0..73c7cd7 100755 --- a/rpi-firmware-update +++ b/rpi-firmware-update @@ -22,6 +22,16 @@ n fi fi FW=$(rpm -q bcm283x-firmware) +if [ "$FW" = "package bcm283x-firmware is not installed" ]; then + echo + echo "$FW" + read -p "Would you like to install bcm283x-firmware (yes or no)? " INSTAA +LL_FW + if [ "$(echo ${INSTALL_FW} | tr [:lower:] [:upper:])" = "YES" ] ; then + dnf install -y bcm283x-firmware + FW=$(rpm -q bcm283x-firmware) + fi +fi echo echo "= Uboot: $UBOOT" echo "= Firmware: $FW"