In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/discovery.sh line 9:
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/discovery.sh line 18:
echo -n "\
^-- 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/discovery.sh line 31:
echo -n "\
^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
^-- 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/discovery.sh line 38:
ethtool $1 2> /dev/null | grep -q "Link detected: yes"
^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ethtool "$1" 2> /dev/null | grep -q "Link detected: yes"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/discovery.sh line 53:
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/discovery.sh line 54:
[ -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/discovery.sh line 55:
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/discovery.sh line 57:
WLANEnable_byte=`tdb get Wireless Enable_byte`
^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
WLANEnable_byte=$(tdb get Wireless Enable_byte)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/discovery.sh line 58:
CameraName=`tdb get Host CameraName_ms`
^--------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
CameraName=$(tdb get Host CameraName_ms)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/discovery.sh line 59:
DiscoveryMode=`tdb get Discovery Enable_byte`
^-----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
DiscoveryMode=$(tdb get Discovery Enable_byte)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/discovery.sh line 63:
eval $(dumpSystemKeys | tdb get System)
^-- SC2046 (warning): Quote this to prevent word splitting.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/discovery.sh line 75:
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/discovery.sh line 81:
WLANEnable_byte=`tdb get Wireless Enable_byte`
^-------------^ SC2034 (warning): WLANEnable_byte appears unused. Verify use (or export if used externally).
^----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
WLANEnable_byte=$(tdb get Wireless Enable_byte)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/discovery.sh line 82:
CameraName=`tdb get Host CameraName_ms`
^--------^ SC2034 (warning): CameraName appears unused. Verify use (or export if used externally).
^--------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
CameraName=$(tdb get Host CameraName_ms)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/discovery.sh line 86:
echo -n "send Bye"
^-- 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/discovery.sh line 88:
kill $(echo $pids)
^-----------^ SC2046 (warning): Quote this to prevent word splitting.
^-----------^ SC2116 (style): Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
kill $(echo "$pids")
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/discovery.sh line 91:
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/discovery.sh line 100:
[ "$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/SC2034 -- CameraName appears unused. Verify...
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...