From: Roy Marples Date: Thu, 15 Dec 2011 03:13:15 +0000 (+0000) Subject: Add ROUTERADVERT to dhcpcd-run-hooks(8) X-Git-Tag: v5.5.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93b871dce1d809fef57aefea2b3c60a3fcb1bc03;p=thirdparty%2Fdhcpcd.git Add ROUTERADVERT to dhcpcd-run-hooks(8) --- diff --git a/dhcpcd-run-hooks.8.in b/dhcpcd-run-hooks.8.in index 1a1f7022..ccfb704a 100644 --- a/dhcpcd-run-hooks.8.in +++ b/dhcpcd-run-hooks.8.in @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd March 23, 2011 +.Dd December 15, 2011 .Dt DHCPCD-RUN-HOOKS 8 SMM .Os .Sh NAME @@ -69,7 +69,7 @@ argument. Here's a list of reasons why .Nm could be invoked: -.Bl -tag -width PREINIT +.Bl -tag -width ROUTERADVERT .It Dv PREINIT dhcpcd is starting up and any pre-initialisation should be done. .It Dv CARRIER @@ -119,6 +119,8 @@ dhcpcd received an OFFER from a DHCP server but will not configure the interface. This is primarily used to test the variables are filled correctly for the script to process them. +.It Dv ROUTERADVERT +dhcpcd has received an IPv6 Router Advertisment, or one has expired. .El .Sh FILES When diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in index 0e603381..8c1871e8 100644 --- a/dhcpcd-run-hooks.in +++ b/dhcpcd-run-hooks.in @@ -12,8 +12,8 @@ state_dir=/var/run/dhcpcd if_up=false if_down=false case "$reason" in -BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) if_up=true;; -PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP) if_down=true;; +BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC|ROUTERADVERT) if_up=true;; +PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP) if_down=true;; esac # Ensure that all arguments are unique