In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 3:
. /lib/rcscripts/sh/error.sh
^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/error.sh was not specified as input (see shellcheck -x).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 4:
. /lib/rcscripts/sh/rc-std2parse.sh
^-- SC1091 (info): Not following: /lib/rcscripts/sh/rc-std2parse.sh was not specified as input (see shellcheck -x).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 5:
. /lib/rcscripts/sh/files.sh
^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/files.sh was not specified as input (see shellcheck -x).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 10:
PROFILES_COUNT=-1
^------------^ SC2034 (warning): PROFILES_COUNT appears unused. Verify use (or export if used externally).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 19:
[ $# -eq 1 ] && [ "$1" ] || {
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 36:
local used_port ports_needed i=0
^----------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^----------^ SC2034 (warning): ports_needed appears unused. Verify use (or export if used externally).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 48:
CM_PORT=$(($STD2_NETWORK_RTP_STARTPORT + $1 + $CHANNEL * 4))
^-------------------------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
^------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 49:
[ $(($CM_PORT % 2)) -eq 0 ] || CM_PORT=$(($CM_PORT + 1))
^------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
^------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 52:
[ $CM_PORT -lt $STD2_NETWORK_RTP_ENDPORT ] || {
^-----------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ $CM_PORT -lt "$STD2_NETWORK_RTP_ENDPORT" ] || {
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 59:
while [ $i -lt $STD2_NETWORK_RTP_NBROFRTPGROUPS ]; do
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
while [ $i -lt "$STD2_NETWORK_RTP_NBROFRTPGROUPS" ]; do
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 60:
[ $i -ne $CHANNEL ] || {
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ $i -ne "$CHANNEL" ] || {
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 61:
i=$(($i + 1))
^-- SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 74:
[ $CM_PORT -ne $used_port ] || {
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ $CM_PORT -ne "$used_port" ] || {
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 80:
i=$(($i + 1))
^-- SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 117:
int32:$4 \
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
int32:"$4" \
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 118:
int32:$5 2>&
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
int32:"$5" 2>&1
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 123:
$DBUS $DOBJ_PATH/Pipeline/$1 $METHOD_PREFIX.Pipeline.Play >/dev/null 2>&
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$DBUS $DOBJ_PATH/Pipeline/"$1" $METHOD_PREFIX.Pipeline.Play >/dev/null 2>&1
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 128:
$DBUS $DOBJ_PATH/Pipeline/$1 $METHOD_PREFIX.Pipeline.Destroy >/dev/null 2>&
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$DBUS $DOBJ_PATH/Pipeline/"$1" $METHOD_PREFIX.Pipeline.Destroy >/dev/null 2>&1
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 133:
local cm_profile_name cm_group trackID creation_msg session_id cm_profile
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^-------------^ SC2034 (warning): cm_profile_name appears unused. Verify use (or export if used externally).
^-----^ SC2034 (warning): trackID appears unused. Verify use (or export if used externally).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 138:
eval cm_profile=\$STD2_NETWORK_RTP_R${CHANNEL}_ALWAYSMULTICASTPROFILE
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval cm_profile=\$STD2_NETWORK_RTP_R"${CHANNEL}"_ALWAYSMULTICASTPROFILE
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 139:
eval cm_group=\$STD2_NETWORK_RTP_R${CHANNEL}_VIDEOADDRESS
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval cm_group=\$STD2_NETWORK_RTP_R"${CHANNEL}"_VIDEOADDRESS
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 140:
eval CM_PORT=\$STD2_NETWORK_RTP_R${CHANNEL}_VIDEOPORT
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval CM_PORT=\$STD2_NETWORK_RTP_R"${CHANNEL}"_VIDEOPORT
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 142:
[ $CM_PORT -ne 0 ] || set_cm_port 0
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$CM_PORT" -ne 0 ] || set_cm_port 0
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 147:
eval cm_profile=\$STD2_NETWORK_RTP_R${CHANNEL}_ALWAYSMULTICASTPROFILE
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval cm_profile=\$STD2_NETWORK_RTP_R"${CHANNEL}"_ALWAYSMULTICASTPROFILE
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 148:
eval cm_group=\$STD2_NETWORK_RTP_R${CHANNEL}_AUDIOADDRESS
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval cm_group=\$STD2_NETWORK_RTP_R"${CHANNEL}"_AUDIOADDRESS
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 149:
eval CM_PORT=\$STD2_NETWORK_RTP_R${CHANNEL}_AUDIOPORT
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval CM_PORT=\$STD2_NETWORK_RTP_R"${CHANNEL}"_AUDIOPORT
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 150:
[ $CM_PORT -ne 0 ] || set_cm_port 2
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$CM_PORT" -ne 0 ] || set_cm_port 2
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 155:
eval ttl=\$STD2_NETWORK_RTP_R${CHANNEL}_TTL
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval ttl=\$STD2_NETWORK_RTP_R"${CHANNEL}"_TTL
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 158:
creation_msg=$(session_create $media "$cm_profile" "$cm_group" "$CM_PORT" $ttl) || {
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^--^ SC2154 (warning): ttl is referenced but not assigned.
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
creation_msg=$(session_create "$media" "$cm_profile" "$cm_group" "$CM_PORT" "$ttl") || {
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 159:
$LOG_E $creation_msg
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$LOG_E "$creation_msg"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 163:
session_id=$(echo $creation_msg | sed -rne 's|^.*Pipeline/([^"]*)"$|\1|p')
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
session_id=$(echo "$creation_msg" | sed -rne 's|^.*Pipeline/([^"]*)"$|\1|p')
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 165:
session_play $session_id || {
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
session_play "$session_id" || {
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 173:
session_destroy $session_id || $LOG_E "Destroy of" \
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
session_destroy "$session_id" || $LOG_E "Destroy of" \
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 180:
session_destroy $session_id || $LOG_E "Destroy of" \
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
session_destroy "$session_id" || $LOG_E "Destroy of" \
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 187:
fsynced_write_or_cleanup $CONF_FILE.tmp $CONF_FILE &&
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 190:
session_destroy $session_id || $LOG_E "Destroy of" \
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
session_destroy "$session_id" || $LOG_E "Destroy of" \
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 199:
local id
^------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 214:
session_destroy $id || $LOG_E "Failed to destroy multicast session $id."
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
session_destroy "$id" || $LOG_E "Failed to destroy multicast session $id."
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 231:
local enabled grep_res
^--------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 236:
eval enabled=\$STD2_NETWORK_RTP_R${CHANNEL}_ALWAYSMULTICASTVIDEO
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval enabled=\$STD2_NETWORK_RTP_R"${CHANNEL}"_ALWAYSMULTICASTVIDEO
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 239:
eval enabled=\$STD2_NETWORK_RTP_R${CHANNEL}_ALWAYSMULTICASTAUDIO
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval enabled=\$STD2_NETWORK_RTP_R"${CHANNEL}"_ALWAYSMULTICASTAUDIO
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 243:
grep -q "$CHANNEL[[:blank:]]\+$MEDIA_TYPE[[:blank:]]\+id" $CONF_FILE
^-- SC1087 (error): Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
^-- SC1087 (error): Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 284:
eval source=\$STD2_IMAGE_I${CHANNEL}_SOURCE
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval source=\$STD2_IMAGE_I"${CHANNEL}"_SOURCE
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 285:
if [ $source = "quad" ]; then
^-----^ SC2154 (warning): source is referenced but not assigned.
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$source" = "quad" ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/sbin/mcast-always-setter line 288:
CAMERA="camera=$(($CHANNEL + 1))"
^------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
For more information:
https://www.shellcheck.net/wiki/SC1087 -- Use braces when expanding arrays,...
https://www.shellcheck.net/wiki/SC2034 -- PROFILES_COUNT appears unused. Ve...
https://www.shellcheck.net/wiki/SC2154 -- source is referenced but not assi...