summaryrefslogtreecommitdiffstats
path: root/dhcpcd/80-pacredir
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-09-01 17:06:17 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-09-01 17:06:17 +0200
commitcd781bf1b860685dfd207a4884f00fb5053866e0 (patch)
treeee21e0e9059a668709084376c8484f0607318fa4 /dhcpcd/80-pacredir
parentb32bee179b77aa1773f29acdd9267afd003d5425 (diff)
downloadpaccache-cd781bf1b860685dfd207a4884f00fb5053866e0.tar.gz
paccache-cd781bf1b860685dfd207a4884f00fb5053866e0.tar.zst
dhcpcd-hook: just kill if process is running
Diffstat (limited to 'dhcpcd/80-pacredir')
-rwxr-xr-xdhcpcd/80-pacredir6
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...