diff --git a/x230/external_install_bottom.sh b/x230/external_install_bottom.sh index ec66bb1..d5e71e6 100755 --- a/x230/external_install_bottom.sh +++ b/x230/external_install_bottom.sh @@ -169,6 +169,13 @@ if [ ! "$have_chipname" -gt 0 ] ; then fi fi + if [ ! "$chip_found" -gt 0 ] ; then + CHIPNAME=$(cat "${TEMP_DIR}"/chips | grep Found | grep "W25Q64.V" | grep -o '".*"' | grep -oP '"\K[^"\047]+(?=["\047])' || true) + if [ ! -z "${CHIPNAME}" ] ; then + chip_found=1 + fi + fi + if [ ! "$chip_found" -gt 0 ] ; then echo "chip not detected." flashrom -p ${programmer} || true