summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
authorSinan Kaya <okaya@kernel.org>2020-11-20 21:33:54 +0000
committerKhem Raj <raj.khem@gmail.com>2020-11-23 07:09:34 -0800
commitfa001e391587eab02c60fc44096673d661968181 (patch)
treeeebaa3839099f309b4b34d93bf0a829426c3b2f2 /meta-oe/recipes-extended
parentdd731c9c88a5d8d38ee1d65038d19a029a6c2a84 (diff)
downloadmeta-openembedded-fa001e391587eab02c60fc44096673d661968181.tar.gz
collectd: fix the test condition for dash compatibility
dash doesn't like double equal sign for test. Replace with single equal sign. Signed-off-by: Sinan Kaya <okaya@kernel.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended')
-rw-r--r--meta-oe/recipes-extended/collectd/collectd/collectd.init8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-oe/recipes-extended/collectd/collectd/collectd.init b/meta-oe/recipes-extended/collectd/collectd/collectd.init
index 95f5f73c6..83413463d 100644
--- a/meta-oe/recipes-extended/collectd/collectd/collectd.init
+++ b/meta-oe/recipes-extended/collectd/collectd/collectd.init
@@ -47,11 +47,11 @@ if [ -r /etc/default/$NAME ]; then
47 . /etc/default/$NAME 47 . /etc/default/$NAME
48fi 48fi
49 49
50if test "$ENABLE_COREFILES" == 1; then 50if test "$ENABLE_COREFILES" = 1; then
51 ulimit -c unlimited 51 ulimit -c unlimited
52fi 52fi
53 53
54if test "$USE_COLLECTDMON" == 1; then 54if test "$USE_COLLECTDMON" = 1; then
55 _PIDFILE="$COLLECTDMON_PIDFILE" 55 _PIDFILE="$COLLECTDMON_PIDFILE"
56else 56else
57 _PIDFILE="$PIDFILE" 57 _PIDFILE="$PIDFILE"
@@ -96,7 +96,7 @@ d_start() {
96 return 2 96 return 2
97 fi 97 fi
98 98
99 if test "$USE_COLLECTDMON" == 1; then 99 if test "$USE_COLLECTDMON" = 1; then
100 start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \ 100 start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \
101 --exec $COLLECTDMON_DAEMON -- -P "$_PIDFILE" -- -C "$CONFIGFILE" \ 101 --exec $COLLECTDMON_DAEMON -- -P "$_PIDFILE" -- -C "$CONFIGFILE" \
102 || return 2 102 || return 2
@@ -150,7 +150,7 @@ d_stop() {
150# 0 if the daemon is running 150# 0 if the daemon is running
151# 3 if the daemon is stopped 151# 3 if the daemon is stopped
152d_status(){ 152d_status(){
153 if test "$USE_COLLECTDMON" == 1; then 153 if test "$USE_COLLECTDMON" = 1; then
154 status $COLLECTDMON_DAEMON 154 status $COLLECTDMON_DAEMON
155 else 155 else
156 status $DAEMON 156 status $DAEMON