mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 02:31:27 +00:00
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>
This commit is contained in:
@@ -47,11 +47,11 @@ if [ -r /etc/default/$NAME ]; then
|
|||||||
. /etc/default/$NAME
|
. /etc/default/$NAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$ENABLE_COREFILES" == 1; then
|
if test "$ENABLE_COREFILES" = 1; then
|
||||||
ulimit -c unlimited
|
ulimit -c unlimited
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$USE_COLLECTDMON" == 1; then
|
if test "$USE_COLLECTDMON" = 1; then
|
||||||
_PIDFILE="$COLLECTDMON_PIDFILE"
|
_PIDFILE="$COLLECTDMON_PIDFILE"
|
||||||
else
|
else
|
||||||
_PIDFILE="$PIDFILE"
|
_PIDFILE="$PIDFILE"
|
||||||
@@ -96,7 +96,7 @@ d_start() {
|
|||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$USE_COLLECTDMON" == 1; then
|
if test "$USE_COLLECTDMON" = 1; then
|
||||||
start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \
|
start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \
|
||||||
--exec $COLLECTDMON_DAEMON -- -P "$_PIDFILE" -- -C "$CONFIGFILE" \
|
--exec $COLLECTDMON_DAEMON -- -P "$_PIDFILE" -- -C "$CONFIGFILE" \
|
||||||
|| return 2
|
|| return 2
|
||||||
@@ -150,7 +150,7 @@ d_stop() {
|
|||||||
# 0 if the daemon is running
|
# 0 if the daemon is running
|
||||||
# 3 if the daemon is stopped
|
# 3 if the daemon is stopped
|
||||||
d_status(){
|
d_status(){
|
||||||
if test "$USE_COLLECTDMON" == 1; then
|
if test "$USE_COLLECTDMON" = 1; then
|
||||||
status $COLLECTDMON_DAEMON
|
status $COLLECTDMON_DAEMON
|
||||||
else
|
else
|
||||||
status $DAEMON
|
status $DAEMON
|
||||||
|
|||||||
Reference in New Issue
Block a user