In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 7:
	echo $&commat
             ^-- SC2068 (error): Double quote array expansions to avoid re-splitting elements.


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 17:
	echo -n "Startting $daemon... "
             ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 18:
	[ -x $binary ] || die "$binary is not a valid application"
             ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ -x "$binary" ] || die "$binary is not a valid application"


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 19:
	export LD_LIBRARY_PATH=$prefix/lib
                               ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	export LD_LIBRARY_PATH="$prefix"/lib


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 25:
	echo -n "$daemon"
             ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 31:
	echo -n "Stopping $daemon... "
             ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 32:
	kill -s SIGTERM $(echo $pids | cut -d' ' -f1)
                        ^---------------------------^ SC2046 (warning): Quote this to prevent word splitting.
                               ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	kill -s SIGTERM $(echo "$pids" | cut -d' ' -f1)


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 39:
	echo -n "Reload $daemon... "
             ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 40:
	kill -s SIGUSR2 $(echo $pids | cut -d' ' -f1)
                        ^---------------------------^ SC2046 (warning): Quote this to prevent word splitting.
                               ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	kill -s SIGUSR2 $(echo "$pids" | cut -d' ' -f1)


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 46:
	echo -n "Suspend $daemon... "
             ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 48:
	kill -s SIGUSR1 $(echo $pids | cut -d' ' -f1)
                        ^---------------------------^ SC2046 (warning): Quote this to prevent word splitting.
                               ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	kill -s SIGUSR1 $(echo "$pids" | cut -d' ' -f1)


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 54:
	echo -n "Suspend $daemon... "
             ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 56:
	kill -s SIGUSR1 $(echo $pids | cut -d' ' -f1)
                        ^---------------------------^ SC2046 (warning): Quote this to prevent word splitting.
                               ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	kill -s SIGUSR1 $(echo "$pids" | cut -d' ' -f1)


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 62:
	echo -n "Suspend $daemon... "
             ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 64:
	kill -s SIGUSR1 $(echo $pids | cut -d' ' -f1)
                        ^---------------------------^ SC2046 (warning): Quote this to prevent word splitting.
                               ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	kill -s SIGUSR1 $(echo "$pids" | cut -d' ' -f1)


In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/motion_detection_bgm.sh line 72:
[ "$end" = "" ] && [ "$action" != "" ] || showUsage
                ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.

For more information:
  https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ...
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC3037 -- In POSIX sh, echo flags are undef...