summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-09-02 08:00:48 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-09-02 08:00:48 +0200
commit2707fd0aca75730526c232f5bebe4937b1f4a709 (patch)
tree4af93908a1f96437b74d18430276dadccc1a6f07
parente62f5ca6164a3504fff4e7536da86bff46772405 (diff)
downloaddhcpcd-hook-ntpdate-0.2.0.tar.gz
dhcpcd-hook-ntpdate-0.2.0.tar.zst
use pgrep instead of pidof0.2.0
-rw-r--r--50-ntpdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/50-ntpdate b/50-ntpdate
index 5cb9850..4e7de9e 100644
--- a/50-ntpdate
+++ b/50-ntpdate
@@ -4,7 +4,7 @@ case "${reason}" in
BOUND|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)
# sync time as soon as connection is up
# this reads nameserver from /etc/ntp.conf
- if ! pidof ntpd >/dev/null; then
+ if ! pgrep -x ntpd >/dev/null; then
ntpd --quit --panicgate
fi
# alternatively use ntpdate and give hostname