diff options
author | Sinan Kaya <okaya@kernel.org> | 2020-11-20 21:33:54 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-11-23 07:09:34 -0800 |
commit | fa001e391587eab02c60fc44096673d661968181 (patch) | |
tree | eebaa3839099f309b4b34d93bf0a829426c3b2f2 /meta-oe/recipes-extended | |
parent | dd731c9c88a5d8d38ee1d65038d19a029a6c2a84 (diff) | |
download | meta-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.init | 8 |
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 |
48 | fi | 48 | fi |
49 | 49 | ||
50 | if test "$ENABLE_COREFILES" == 1; then | 50 | if test "$ENABLE_COREFILES" = 1; then |
51 | ulimit -c unlimited | 51 | ulimit -c unlimited |
52 | fi | 52 | fi |
53 | 53 | ||
54 | if test "$USE_COLLECTDMON" == 1; then | 54 | if test "$USE_COLLECTDMON" = 1; then |
55 | _PIDFILE="$COLLECTDMON_PIDFILE" | 55 | _PIDFILE="$COLLECTDMON_PIDFILE" |
56 | else | 56 | else |
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 |
152 | d_status(){ | 152 | d_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 |