base-files: exit if mtd write command fails during sysupgrade
authorRafał Miłecki <rafal@milecki.pl>
Mon, 11 Jun 2018 10:52:42 +0000 (12:52 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 18 Jun 2018 04:37:28 +0000 (06:37 +0200)
commit5b2e20807d2b38de1cc4185d15bb4320b8bd743a
tree4c34629f183fe8a5afca9869b86e4c91a3cc1583
parent1c1e2542445040b62a13862e42f961ac9c7e54f5
base-files: exit if mtd write command fails during sysupgrade

It avoids confusing situations like:
> Could not get image magic
> Image check failed.
> Upgrade completed
> Rebooting system...

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
package/base-files/files/lib/upgrade/common.sh