Skip to content

Commit

Permalink
rc: run service-event-end earlier so it gets run on multiple rc events
Browse files Browse the repository at this point in the history
  • Loading branch information
RMerl committed May 4, 2019
1 parent 75e80b4 commit 962c6a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release/src/router/rc/services.c
Expand Up @@ -13360,6 +13360,9 @@ _dprintf("test 2. turn off the USB power during %d seconds.\n", reset_seconds[re
}

skip:

run_custom_script("service-event-end", 0, actionstr, script);

if(nvptr){
_dprintf("goto again(%d)...\n", getpid());
goto again;
Expand All @@ -13377,8 +13380,6 @@ _dprintf("goto again(%d)...\n", getpid());
}
#endif

run_custom_script("service-event-end", 0, actionstr, script);

nvram_set("rc_service", "");
nvram_set("rc_service_pid", "");
_dprintf("handle_notifications() end\n");
Expand Down

0 comments on commit 962c6a4

Please sign in to comment.