summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2013-08-25 10:22:48 +0000
committerRoy Marples <roy@marples.name>2013-08-25 10:22:48 +0000
commit15fc1181d54a92fd48427c77fb3615a39774511a (patch)
tree707db2512aebda7d2fe5bc2de9d12d6382688358 /ipv6nd.c
parent68662728f75d9cd530c064420e9f9ee13d731325 (diff)
downloaddhcpcd-15fc1181d54a92fd48427c77fb3615a39774511a.tar.xz
Fix the persistent option.
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipv6nd.c b/ipv6nd.c
index 38486b12..8f372b0d 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -1268,7 +1268,10 @@ ipv6nd_drop(struct interface *ifp)
ipv6nd_drop_ra(rap);
}
ipv6_buildroutes();
- script_runreason(ifp, "ROUTERADVERT");
+ if ((ifp->options->options &
+ (DHCPCD_EXITING | DHCPCD_PERSISTENT)) !=
+ (DHCPCD_EXITING | DHCPCD_PERSISTENT))
+ script_runreason(ifp, "ROUTERADVERT");
}
}
static void