system: return ubus error when sysupgrade_exec_upgraded() has failed
authorMatthias Schiffer <mschiffer@universe-factory.net>
Thu, 20 Jul 2017 19:35:14 +0000 (21:35 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Thu, 20 Jul 2017 19:38:31 +0000 (21:38 +0200)
commit17026f4683b2a99085779e6bec3a2e67479089e0
tree0c9b6b347bc57b0fb73be4f131d7d070f59c7a16
parent13f252f39d2f870d01884d1b0cf0a91a1a669d03
system: return ubus error when sysupgrade_exec_upgraded() has failed

When sysupgrade_exec_upgraded() is successful, it will replace procd with
upgraded, so it won't ever return (making the ubus call hang forever, which
is fine as stage2 will kill all processes anyways).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
system.c