From fa001e391587eab02c60fc44096673d661968181 Mon Sep 17 00:00:00 2001 From: Sinan Kaya Date: Fri, 20 Nov 2020 21:33:54 +0000 Subject: 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 Signed-off-by: Khem Raj --- meta-oe/recipes-extended/collectd/collectd/collectd.init | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'meta-oe/recipes-extended/collectd') diff --git a/meta-oe/recipes-extended/collectd/collectd/collectd.init b/meta-oe/recipes-extended/collectd/collectd/collectd.init index 95f5f73c67..83413463d8 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 . /etc/default/$NAME fi -if test "$ENABLE_COREFILES" == 1; then +if test "$ENABLE_COREFILES" = 1; then ulimit -c unlimited fi -if test "$USE_COLLECTDMON" == 1; then +if test "$USE_COLLECTDMON" = 1; then _PIDFILE="$COLLECTDMON_PIDFILE" else _PIDFILE="$PIDFILE" @@ -96,7 +96,7 @@ d_start() { return 2 fi - if test "$USE_COLLECTDMON" == 1; then + if test "$USE_COLLECTDMON" = 1; then start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \ --exec $COLLECTDMON_DAEMON -- -P "$_PIDFILE" -- -C "$CONFIGFILE" \ || return 2 @@ -150,7 +150,7 @@ d_stop() { # 0 if the daemon is running # 3 if the daemon is stopped d_status(){ - if test "$USE_COLLECTDMON" == 1; then + if test "$USE_COLLECTDMON" = 1; then status $COLLECTDMON_DAEMON else status $DAEMON -- cgit 1.2.3-korg