summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-05-11 20:59:41 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-05-11 20:59:41 +0200
commit32cff8a391c1cfda9bfccdf42f6a72d31f85cd68 (patch)
tree7c5599723a643a5ad35b3d93aaa33ce1e6160553 /net-dns
parentx11-apps/radeon-profile-daemon: sleep only accepts integers in POSIX mode (diff)
downloadgentoo-32cff8a391c1cfda9bfccdf42f6a72d31f85cd68.tar.gz
gentoo-32cff8a391c1cfda9bfccdf42f6a72d31f85cd68.tar.bz2
gentoo-32cff8a391c1cfda9bfccdf42f6a72d31f85cd68.zip
net-dns/pdnsd: sleep only accepts integers in POSIX mode
Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/pdnsd/files/pdnsd.online.28
1 files changed, 4 insertions, 4 deletions
diff --git a/net-dns/pdnsd/files/pdnsd.online.2 b/net-dns/pdnsd/files/pdnsd.online.2
index 089f4e76e9cc..be33bfaa03e1 100644
--- a/net-dns/pdnsd/files/pdnsd.online.2
+++ b/net-dns/pdnsd/files/pdnsd.online.2
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/sbin/pdnsd-ctl"
@@ -10,10 +10,10 @@ depend() {
wait_for_socket() {
local i=0 pdnsd_socket="/var/cache/pdnsd/pdnsd.status"
- while [ $i -lt 10 ]; do
+ while [ ${i} -lt 10 ]; do
[ -S "${pdnsd_socket}" ] && return 0
- i=$(($i+1))
- sleep 1s
+ i=$((${i}+1))
+ sleep 1
done
return 1