diff options
author | Christian Hesse <mail@eworm.de> | 2014-09-01 17:06:17 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-09-01 17:06:17 +0200 |
commit | cd781bf1b860685dfd207a4884f00fb5053866e0 (patch) | |
tree | ee21e0e9059a668709084376c8484f0607318fa4 /dhcpcd/80-pacredir | |
parent | b32bee179b77aa1773f29acdd9267afd003d5425 (diff) | |
download | pacredir-cd781bf1b860685dfd207a4884f00fb5053866e0.tar.gz pacredir-cd781bf1b860685dfd207a4884f00fb5053866e0.tar.zst |
dhcpcd-hook: just kill if process is running
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... |