summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2012-01-25 17:30:41 +0000
committerRoy Marples <roy@marples.name>2012-01-25 17:30:41 +0000
commitc46132f64e2075ffc4da50c8f341aacaaca70822 (patch)
treeb5cbe284f8cfb4de8ebd41424e51549426fa7706
parentbd924a0f09a82285158177bd86e2d0745c6eb42c (diff)
downloaddhcpcd-c46132f64e2075ffc4da50c8f341aacaaca70822.tar.xz
Fix RA state detection
-rw-r--r--dhcpcd-run-hooks.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in
index 52a1e18c..8e594709 100644
--- a/dhcpcd-run-hooks.in
+++ b/dhcpcd-run-hooks.in
@@ -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()