diff options
author | Christian Hesse <mail@eworm.de> | 2014-09-02 08:00:48 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-09-02 08:00:48 +0200 |
commit | 2707fd0aca75730526c232f5bebe4937b1f4a709 (patch) | |
tree | 4af93908a1f96437b74d18430276dadccc1a6f07 /50-ntpdate | |
parent | e62f5ca6164a3504fff4e7536da86bff46772405 (diff) | |
download | dhcpcd-hook-ntpdate-2707fd0aca75730526c232f5bebe4937b1f4a709.tar.gz dhcpcd-hook-ntpdate-2707fd0aca75730526c232f5bebe4937b1f4a709.tar.zst |
use pgrep instead of pidof0.2.0
Diffstat (limited to '50-ntpdate')
-rw-r--r-- | 50-ntpdate | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |