summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2017-02-12 12:20:20 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2017-02-12 12:28:23 +0300
commit86594d4db4c4d69b0ef7ec5c431d96f35aeca021 (patch)
treeb96a673538c984d5256b56ca1e6cb544df7d7c4e /app-mobilephone
parentapp-admin/clsync: remove bashisms (diff)
downloadgentoo-86594d4db4c4d69b0ef7ec5c431d96f35aeca021.tar.gz
gentoo-86594d4db4c4d69b0ef7ec5c431d96f35aeca021.tar.bz2
gentoo-86594d4db4c4d69b0ef7ec5c431d96f35aeca021.zip
app-mobilephone/sobexsrv: remove bashisms
Package-Manager: Portage-2.3.3, Repoman-2.3.1 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'app-mobilephone')
-rw-r--r--app-mobilephone/sobexsrv/files/init.d_sobexsrv26
1 files changed, 13 insertions, 13 deletions
diff --git a/app-mobilephone/sobexsrv/files/init.d_sobexsrv b/app-mobilephone/sobexsrv/files/init.d_sobexsrv
index 6eb22e38b54..cfdfc41559f 100644
--- a/app-mobilephone/sobexsrv/files/init.d_sobexsrv
+++ b/app-mobilephone/sobexsrv/files/init.d_sobexsrv
@@ -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$
@@ -9,23 +9,23 @@ depend() {
}
check_config() {
- if [[ -z "${USER}" ]] ; then
+ if [ -z "${USER}" ] ; then
eerror "Please set \$USER in /etc/conf.d/sobexsrv!"
return 1
fi
- if [[ -z "${GROUP}" ]] ; then
+ if [ -z "${GROUP}" ] ; then
eerror "Please set \$GROUP in /etc/conf.d/sobexsrv!"
return 1
fi
- if [[ ${CHROOT} == "yes" ]] ; then
- if [[ ! -u /usr/bin/sobexsrv ]] ; then
+ if [ ${CHROOT} = "yes" ] ; then
+ if [ ! -u /usr/bin/sobexsrv ] ; then
eerror "The \$CHROOT option requires /usr/bin/sobexsrv to be suid root!"
return 1
fi
fi
- if [[ -z "${INBOX}" || ! -e "${INBOX}" ]] ; then
+ if [ -z "${INBOX}" ] || [ ! -e "${INBOX}" ] ; then
eerror "Please configure \$INBOX correctly in /etc/conf.d/sobexsrv!"
return 1
fi
@@ -38,13 +38,13 @@ start() {
ebegin "Starting sobexsrv"
OPTIONS=""
- [[ -n "${CHANNEL}" ]] && OPTIONS="${OPTIONS} -c ${CHANNEL}"
- [[ -n "${SECURITY_LEVEL}" ]] && OPTIONS="${OPTIONS} -s ${SECURITY_LEVEL}"
- [[ "${CHROOT}" == "yes" ]] && OPTIONS="${OPTIONS} -R"
- [[ "${DISABLE_OPUSH}" == "yes" ]] && OPTIONS="${OPTIONS} -o"
- [[ "${DISABLE_OBEXFTP}" == "yes" ]] && OPTIONS="${OPTIONS} -f"
- [[ "${DISABLE_OBEXFTP_LISTING}" == "yes" ]] && OPTIONS="${OPTIONS} -F"
- [[ "${USE_SYSLOG}" == "yes" ]] && OPTIONS="${OPTIONS} -S"
+ [ -n "${CHANNEL}" ] && OPTIONS="${OPTIONS} -c ${CHANNEL}"
+ [ -n "${SECURITY_LEVEL}" ] && OPTIONS="${OPTIONS} -s ${SECURITY_LEVEL}"
+ [ "${CHROOT}" = "yes" ] && OPTIONS="${OPTIONS} -R"
+ [ "${DISABLE_OPUSH}" = "yes" ] && OPTIONS="${OPTIONS} -o"
+ [ "${DISABLE_OBEXFTP}" = "yes" ] && OPTIONS="${OPTIONS} -f"
+ [ "${DISABLE_OBEXFTP_LISTING}" = "yes" ] && OPTIONS="${OPTIONS} -F"
+ [ "${USE_SYSLOG}" = "yes" ] && OPTIONS="${OPTIONS} -S"
OPTIONS="-I -r ${INBOX} ${OPTIONS} ${SOBEXSRV_OPT}"