Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/RMerl/asuswrt-merlin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sauvageau <rmerl@lostrealm.ca>2018-03-12 06:48:44 +0300
committerEric Sauvageau <rmerl@lostrealm.ca>2018-03-12 06:48:44 +0300
commitca28e0f97283f5474466c424c8c268c795eeb156 (patch)
treedec79f31973c2a523c7ff8ab4263c028d19f892d /release
parent51ef3f520e487d261c42783f2e75eb8ff7e2d47a (diff)
rc: miniupnpd: wait 10 secs before restarting miniupnpd on ntp's first sync
Diffstat (limited to 'release')
-rw-r--r--release/src/router/rc/ntp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/src/router/rc/ntp.c b/release/src/router/rc/ntp.c
index dad9927e5a..41e420c481 100644
--- a/release/src/router/rc/ntp.c
+++ b/release/src/router/rc/ntp.c
@@ -56,8 +56,6 @@ static void ntp_service()
setup_timezone();
- if (is_routing_enabled())
- notify_rc_and_period_wait("restart_upnp", 25);
#ifdef RTCONFIG_DISK_MONITOR
notify_rc("restart_diskmon");
#endif
@@ -67,6 +65,11 @@ static void ntp_service()
reload_dnsmasq();
}
#endif
+
+ if (is_routing_enabled()) {
+ sleep(10);
+ notify_rc_and_period_wait("restart_upnp", 25);
+ }
}
}