From 4c50bfc7c8f6c1575586dde1d5053d72dc0b4937 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 31 Oct 2013 19:23:50 +0100 Subject: add dhcpcd hook that informs pacredir about reestablished connection --- dhcpcd/80-pacredir | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 dhcpcd/80-pacredir (limited to 'dhcpcd') diff --git a/dhcpcd/80-pacredir b/dhcpcd/80-pacredir new file mode 100755 index 0000000..50bed5c --- /dev/null +++ b/dhcpcd/80-pacredir @@ -0,0 +1,11 @@ +#!/bin/sh + +case "${reason}" in + BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) + # inform pacredir about reestablished connection + kill -HUP $(pgrep pacredir) + ;; + PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP) + # do nothing here... + ;; +esac -- cgit v1.2.3-70-g09d2