diff options
Diffstat (limited to 'dhcpcd/80-pacredir')
-rwxr-xr-x | dhcpcd/80-pacredir | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dhcpcd/80-pacredir b/dhcpcd/80-pacredir index b67af4e..b5651be 100755 --- a/dhcpcd/80-pacredir +++ b/dhcpcd/80-pacredir @@ -1,9 +1,11 @@ #!/bin/sh - + case "${reason}" in BOUND|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) # inform pacredir about reestablished connection - kill -HUP $(pgrep pacredir) + if pgrep -x pacredir >/dev/null; then + kill -HUP $(pgrep pacredir) + fi ;; PREINIT|EXPIRE|INFORM|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP) # do nothing here... |