diff options
author | John Crispin <blogic@openwrt.org> | 2013-11-08 22:25:20 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-11-08 22:40:03 +0100 |
commit | 315f04d8b823adda96041c17f6672b7790376ccb (patch) | |
tree | 0016c7a4304595a3f453dbe12f3a0ef1e433db42 /system.c | |
parent | 8fd40e8352bac9992ca4ebd50998d4e961f5404b (diff) | |
download | unitd-315f04d8b823adda96041c17f6672b7790376ccb.tar unitd-315f04d8b823adda96041c17f6672b7790376ccb.zip |
the automatic service restart should not happen during sysupgrade
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'system.c')
-rw-r--r-- | system.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -29,6 +29,8 @@ 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) @@ -191,6 +193,8 @@ static int system_upgrade(struct ubus_context *ctx, struct ubus_object *obj, log_shutdown(); hotplug_shutdown(); + upgrade_running = 1; + return 0; } |