diff options
author | Raúl Porcel <armin76@gentoo.org> | 2007-03-21 18:42:05 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2007-03-21 18:42:05 +0000 |
commit | 8bfc4fdf634c1aeaf15dd9ca1323aaec93f5e8e3 (patch) | |
tree | 04ed868806802d979a3ffa30148fd96de5ac73ca /net-p2p/btpd/files | |
parent | Stable on amd64 wrt bug #170303. (diff) | |
download | gentoo-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_btpd | 4 |
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 |