From: Steven Barth Date: Thu, 29 Nov 2012 17:14:02 +0000 (+0100) Subject: Wait 1 second between disable and enable calls X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=60f9b7b84d13f0dd33064b8f4692d989a76a33e7;p=project%2Fodhcp6c.git Wait 1 second between disable and enable calls --- diff --git a/src/odhcp6c.c b/src/odhcp6c.c index b517204..940acd5 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -150,6 +150,8 @@ int main(_unused int argc, char* const argv[]) if (reset) { sysctl_interface(ifname, "accept_ra", "2"); sysctl_interface(ifname, "disable_ipv6", "1"); + struct timespec ts = {1, 0}; + nanosleep(&ts, NULL); sysctl_interface(ifname, "disable_ipv6", "0"); }