summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2007-02-15 06:51:31 +0000
committeryar <yar@FreeBSD.org>2007-02-15 06:51:31 +0000
commit757700b4439fdd83fc5ff5de3504d213c2082cf9 (patch)
tree705e7b1b09b0175b3c9e523d2b160440eee5010c
parent6170b53b30304692f368a25a0c7c93db01644ad1 (diff)
downloadFreeBSD-src-757700b4439fdd83fc5ff5de3504d213c2082cf9.zip
FreeBSD-src-757700b4439fdd83fc5ff5de3504d213c2082cf9.tar.gz
pkill(1) and pgrep(1) have been moved to /bin so that they are
available to rc.d scripts early in the boot sequence.
-rwxr-xr-xetc/rc.d/dhclient6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/dhclient b/etc/rc.d/dhclient
index cd11827..cc849b8 100755
--- a/etc/rc.d/dhclient
+++ b/etc/rc.d/dhclient
@@ -19,9 +19,9 @@ stop_cmd="dhclient_stop"
dhclient_start()
{
# prevent unnecessary restarts
- # XXX: should use a pidfile
- if [ -x /usr/bin/pgrep ]; then
- pids=`/usr/bin/pgrep -f "dhclient: $ifn(\$| .*)"`
+ # XXX: dhclient had better create a pidfile
+ if [ -x /bin/pgrep ]; then
+ pids=`/bin/pgrep -f "dhclient: $ifn(\$| .*)"`
if [ -n "$pids" ]; then
exit 0
fi
OpenPOWER on IntegriCloud