]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix RA state detection
authorRoy Marples <roy@marples.name>
Wed, 25 Jan 2012 17:30:41 +0000 (17:30 +0000)
committerRoy Marples <roy@marples.name>
Wed, 25 Jan 2012 17:30:41 +0000 (17:30 +0000)
dhcpcd-run-hooks.in

index 52a1e18c7ac391141ee6cc7db40d347f788db9c1..8e594709d8f6c829be96ae01555f2d74e2145896 100644 (file)
@@ -16,7 +16,7 @@ BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)      if_up=true;;
 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()