From: Paul Hänsch Date: Thu, 1 Nov 2018 15:49:29 +0000 (+0100) Subject: Allow rpi-update to fail if bootloader is already present X-Git-Url: http://git.plutz.net/?p=rpi_small;a=commitdiff_plain;h=536acfb1ae1b727c4850027e68b45db90bff5f24 Allow rpi-update to fail if bootloader is already present --- diff --git a/Makefile b/Makefile index ed769e6..6f810da 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ raspi_root/: raspi_root .FORCE chroot "$@" apt-get --yes install ${PACKAGES} chroot "$@" apt-get --yes --auto-remove purge chroot "$@" apt-get --yes --auto-remove upgrade - chroot "$@" rpi-update + chroot "$@" rpi-update || [ -f "$@/boot/bootcode.bin" ] sync chroot "$@" apt-get clean chroot "$@" rm /usr/local/sbin/invoke-rc.d