summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2007-03-21 18:42:05 +0000
committerRaúl Porcel <armin76@gentoo.org>2007-03-21 18:42:05 +0000
commit8bfc4fdf634c1aeaf15dd9ca1323aaec93f5e8e3 (patch)
tree04ed868806802d979a3ffa30148fd96de5ac73ca /net-p2p/btpd/files
parentStable on amd64 wrt bug #170303. (diff)
downloadgentoo-2-8bfc4fdf634c1aeaf15dd9ca1323aaec93f5e8e3.tar.gz
gentoo-2-8bfc4fdf634c1aeaf15dd9ca1323aaec93f5e8e3.tar.bz2
gentoo-2-8bfc4fdf634c1aeaf15dd9ca1323aaec93f5e8e3.zip
Make init script POSIX compilant, bug 171691, thanks to Natanael Copa <natanael.copa at gmail dot com> for the patch
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-p2p/btpd/files')
-rw-r--r--net-p2p/btpd/files/initd_btpd4
1 files changed, 2 insertions, 2 deletions
diff --git a/net-p2p/btpd/files/initd_btpd b/net-p2p/btpd/files/initd_btpd
index 2d54e9bdb758..02505e95252c 100644
--- a/net-p2p/btpd/files/initd_btpd
+++ b/net-p2p/btpd/files/initd_btpd
@@ -51,7 +51,7 @@ stop() {
local retries=0
ebegin "Stopping BitTorrent Protocol Daemon"
- while [[ -n "`pgrep -u ${BTPDUSER} btpd`" && ${retries} -lt 4 ]]; do
+ while [ -n "`pgrep -u ${BTPDUSER} btpd`" ] && [ ${retries} -lt 4 ]; do
if test ${retries} -eq 0; then
su ${BTPDUSER} -c "btcli kill"
else
@@ -59,7 +59,7 @@ stop() {
fi
sleep 1
- let retries=$retries+1
+ retries=$(( $retries + 1 ))
done
if [ ${retries} -lt 4 ]; then