changeset 1636:61d8b0892a8b draft

Fix RA state detection
author Roy Marples <roy@marples.name>
date Wed, 25 Jan 2012 17:30:41 +0000
parents 80ee4524815c
children a825bcdb5a77
files dhcpcd-run-hooks.in
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd-run-hooks.in	Tue Jan 24 11:27:55 2012 +0000
+++ b/dhcpcd-run-hooks.in	Wed Jan 25 17:30:41 2012 +0000
@@ -16,7 +16,7 @@
 PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP)	if_down=true;;
 esac
 
-[ "$reason" = ROUTERADVERT -a "$ra_count" != 0 ] && if_up=true
+[ "$reason" = ROUTERADVERT -a "$new_ra_count" != 0 ] && if_up=true
 
 # Ensure that all arguments are unique
 uniqify()