diff --git a/recipes-connectivity/ublox-gnss-fw-update/files/gnss-fw-update b/recipes-connectivity/ublox-gnss-fw-update/files/gnss-fw-update index 54202a6..53a8946 100755 --- a/recipes-connectivity/ublox-gnss-fw-update/files/gnss-fw-update +++ b/recipes-connectivity/ublox-gnss-fw-update/files/gnss-fw-update @@ -1,15 +1,13 @@ #!/usr/bin/env sh -echo -echo "Make sure the module is ready for update :" -echo "Safeboot pin connected to gnd before boot (use test adapter board)" -read - systemctl stop gpsd systemctl stop gpsd.socket killall gpsd killall ser2net fwupdate -p /dev/ttyS3 -F /lib/firmware/ubx-fw-flash.xml /lib/firmware/UBX_M8_301_ADR_421_NEO_M8L.bin -echo -echo "Now you need to remove the connection on the safeboot pin and completely poweroff the system" +if [ $? -eq 0 ]; then + echo "Firmware update was successful, please do a full power cycle of the device" +else + echo "Firmware update failed" +fi