1 |
commit: 32cff8a391c1cfda9bfccdf42f6a72d31f85cd68 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 11 18:59:41 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 11 18:59:41 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32cff8a3 |
7 |
|
8 |
net-dns/pdnsd: sleep only accepts integers in POSIX mode |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-dns/pdnsd/files/pdnsd.online.2 | 8 ++++---- |
14 |
1 file changed, 4 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/net-dns/pdnsd/files/pdnsd.online.2 b/net-dns/pdnsd/files/pdnsd.online.2 |
17 |
index 089f4e76e9c..be33bfaa03e 100644 |
18 |
--- a/net-dns/pdnsd/files/pdnsd.online.2 |
19 |
+++ b/net-dns/pdnsd/files/pdnsd.online.2 |
20 |
@@ -1,5 +1,5 @@ |
21 |
#!/sbin/openrc-run |
22 |
-# Copyright 1999-2012 Gentoo Foundation |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
command="/usr/sbin/pdnsd-ctl" |
27 |
@@ -10,10 +10,10 @@ depend() { |
28 |
|
29 |
wait_for_socket() { |
30 |
local i=0 pdnsd_socket="/var/cache/pdnsd/pdnsd.status" |
31 |
- while [ $i -lt 10 ]; do |
32 |
+ while [ ${i} -lt 10 ]; do |
33 |
[ -S "${pdnsd_socket}" ] && return 0 |
34 |
- i=$(($i+1)) |
35 |
- sleep 1s |
36 |
+ i=$((${i}+1)) |
37 |
+ sleep 1 |
38 |
done |
39 |
|
40 |
return 1 |