summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2017-02-12 17:05:04 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2017-02-12 17:05:04 +0300
commit675df0a12902169b7ae1a24d286b7db773cf9d68 (patch)
tree61037f068cf81d795e7260ea0544d7be97783a5c /media-sound
parentnet-mail/courier-imap: fix bug 340175 (diff)
downloadgentoo-675df0a12902169b7ae1a24d286b7db773cf9d68.tar.gz
gentoo-675df0a12902169b7ae1a24d286b7db773cf9d68.tar.bz2
gentoo-675df0a12902169b7ae1a24d286b7db773cf9d68.zip
media-sound/mt-daapd: fix bug 335298
Make init script POSIX compliant. Package-Manager: Portage-2.3.3, Repoman-2.3.1 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/mt-daapd/files/mt-daapd.init.24
1 files changed, 2 insertions, 2 deletions
diff --git a/media-sound/mt-daapd/files/mt-daapd.init.2 b/media-sound/mt-daapd/files/mt-daapd.init.2
index 7c0a69651fb1..4211bdff92ba 100644
--- a/media-sound/mt-daapd/files/mt-daapd.init.2
+++ b/media-sound/mt-daapd/files/mt-daapd.init.2
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# Somehow based on init.d file shipped with mt-daapd itself.
@@ -17,7 +17,7 @@ if [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ]; then
fi
CONF="${myservice##*.}"
-if [[ -n ${CONF} && ${myservice} != "mt-daapd" ]]; then
+if [ -n ${CONF} -a ${myservice} != "mt-daapd" ]; then
PIDFILE="/var/run/mt-daapd.${CONF}.pid"
CONFFILE="/etc/mt-daapd.d/${CONF}.conf"
else