Signed-off-by: John Crispin <blogic@openwrt.org>
runtime = tp.tv_sec - in->start.tv_sec;
DEBUG(1, "Instance %s::%s exit with error code %d after %ld seconds\n", in->srv->name, in->name, ret, runtime);
+ if (upgrade_running)
+ return;
+
uloop_timeout_cancel(&in->timeout);
if (in->halt) {
/* no action */
} while (0)
extern char *ubus_socket;
+extern int upgrade_running;
extern unsigned int debug;
void debug_init(void);
static struct blob_buf b;
+int upgrade_running = 0;
+
static int system_board(struct ubus_context *ctx, struct ubus_object *obj,
struct ubus_request_data *req, const char *method,
struct blob_attr *msg)
log_shutdown();
hotplug_shutdown();
+ upgrade_running = 1;
+
return 0;
}