Package-Manager: portage-2.1.2.2
# ChangeLog for net-p2p/btpd
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/btpd/ChangeLog,v 1.3 2007/03/05 15:13:52 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/btpd/ChangeLog,v 1.4 2007/03/21 18:42:05 armin76 Exp $
+
+ 21 Mar 2007; Raúl Porcel <armin76@gentoo.org> files/initd_btpd:
+ Make init script POSIX compilant, bug 171691, thanks to Natanael Copa
+ <natanael.copa at gmail dot com> for the patch
*btpd-0.12 (05 Mar 2007)
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
fi
sleep 1
- let retries=$retries+1
+ retries=$(( $retries + 1 ))
done
if [ ${retries} -lt 4 ]; then