summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaosEngine <andrzej.pauli@gmail.com>2022-06-12 17:38:23 +0200
committerJoonas Niilola <juippis@gentoo.org>2022-07-02 20:35:14 +0300
commit1a15764fea542d473a1abf67ccccd8fd5dee68d5 (patch)
treef46487b6a404b14d6b0436d9716441d7f3e7cce2 /media-video/mjpg-streamer
parentdev-lang/janet: update EAPI 7 -> 8 (diff)
downloadgentoo-1a15764fea542d473a1abf67ccccd8fd5dee68d5.tar.gz
gentoo-1a15764fea542d473a1abf67ccccd8fd5dee68d5.tar.bz2
gentoo-1a15764fea542d473a1abf67ccccd8fd5dee68d5.zip
media-video/mjpg-streamer: fix init script's non-POSIX features
Closes: https://bugs.gentoo.org/848474 Signed-off-by: Andrzej Pauli (@ChaosEngine) <andrzej.pauli@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/25865 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-video/mjpg-streamer')
-rw-r--r--media-video/mjpg-streamer/files/mjpg-streamer.initd14
1 files changed, 7 insertions, 7 deletions
diff --git a/media-video/mjpg-streamer/files/mjpg-streamer.initd b/media-video/mjpg-streamer/files/mjpg-streamer.initd
index e7116dba01d2..71da09faedf6 100644
--- a/media-video/mjpg-streamer/files/mjpg-streamer.initd
+++ b/media-video/mjpg-streamer/files/mjpg-streamer.initd
@@ -1,9 +1,9 @@
#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
MJPG_STREAMER_PIDFILE="${MJPG_STREAMER_PIDFILE:-/var/run/${SVCNAME}.pid}"
-MY_NAME=${SVCNAME//-/_}
+MY_NAME="${SVCNAME//-/_}"
depend() {
use logger
@@ -13,13 +13,13 @@ depend() {
checkconfig() {
local vars
- [[ ${INPUT_PLUGIN} ]] || vars+=\ INPUT_PLUGIN
- [[ ${OUTPUT_PLUGIN} ]] || vars+=\ OUTPUT_PLUGIN
- [[ ${MJPG_STREAMER_USER} ]] || vars+=\ MJPG_STREAMER_USER
- [[ ${MJPG_STREAMER_GROUP} ]] || vars+=\ MJPG_STREAMER_GROUP
+ [ "${INPUT_PLUGIN}" ] || vars+=\ INPUT_PLUGIN
+ [ "${OUTPUT_PLUGIN}" ] || vars+=\ OUTPUT_PLUGIN
+ [ "${MJPG_STREAMER_USER}" ] || vars+=\ MJPG_STREAMER_USER
+ [ "${MJPG_STREAMER_GROUP}" ] || vars+=\ MJPG_STREAMER_GROUP
vars="${vars# }"
- if [[ ${vars} ]]; then
+ if [ "${vars}" ]; then
eerror "Required variables in /etc/conf.d/${SVCNAME} are not set:"
eerror " ${vars// /, }"
return 1