Make init script POSIX compliant.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
#!/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.
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