In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 3:
. /usr/html/axis-cgi/lib/functions.sh
  ^-- SC1091 (info): Not following: /usr/html/axis-cgi/lib/functions.sh was not specified as input (see shellcheck -x).


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 22:
	local value
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 24:
	value=${POST_INPUT##*$1=}
                             ^-- SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.

Did you mean: 
	value=${POST_INPUT##*"$1"=}


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 28:
		echo ${value%%&*}
                     ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		echo "${value%%&*}"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 35:
read POST_INPUT
^--^ SC2162 (info): read without -r will mangle backslashes.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 71:
if [ $usescalable ]; then
     ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
if [ "$usescalable" ]; then


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 74:
	rm -rf $ovl_dir || croak "Error deleting '$ovl_dir'!"
               ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -rf "$ovl_dir" || croak "Error deleting '$ovl_dir'!"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 75:
	mkdir -m775 $ovl_dir || croak "Error creating '$ovl_dir'!"
                    ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	mkdir -m775 "$ovl_dir" || croak "Error creating '$ovl_dir'!"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 82:
		echo "$colorcode" >$overlay_palette
                                   ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		echo "$colorcode" >"$overlay_palette"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 84:
		chmod 644 $overlay_palette ||
                          ^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chmod 644 "$overlay_palette" ||


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 88:
	mv "$ov_path" $ovl_dir/bmp ||
                      ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	mv "$ov_path" "$ovl_dir"/bmp ||


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 90:
	chmod 644 $ovl_dir/bmp ||
                  ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 644 "$ovl_dir"/bmp ||


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 100:
		usetransparent=$(parse usetransparent)
                ^------------^ SC2034 (warning): usetransparent appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 101:
		if [ $? -ne 0 ]; then
                     ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 102:
			echo f >>$tmpovl_pallete
                                 ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			echo f >>"$tmpovl_pallete"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 105:
			echo "f $colorcode" >>$tmpovl_pallete
                                              ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			echo "f $colorcode" >>"$tmpovl_pallete"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 110:
			k=$(($i + 1))
                             ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 114:
			echo "i "$i" "$c_p" "$o_t" "$l_p >>$tmpovl_pallete
                                 ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them.
                                      ^--^ SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them.
                                      ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                             ^--^ SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them.
                                             ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                    ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                           ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			echo "i "$i" ""$c_p"" ""$o_t"" ""$l_p" >>"$tmpovl_pallete"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 115:
			i=$(($i + 1))
                             ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 126:
		bmp2overlay $tmpovl_pallete "$ov_path" /etc/overlays/"$prefix" >$ovl_filename
                            ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		bmp2overlay "$tmpovl_pallete" "$ov_path" /etc/overlays/"$prefix" >"$ovl_filename"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 127:
		echo $? >$exit_status
                         ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		echo $? >"$exit_status"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 137:
	outfile=$(cat $ovl_filename)
                      ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	outfile=$(cat "$ovl_filename")


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 138:
	rm -f $ovl_filename
              ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f "$ovl_filename"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 139:
	err=$(cat $exit_status)
                  ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	err=$(cat "$exit_status")


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 140:
	rm -f $exit_status
              ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f "$exit_status"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 141:
	if [ -f "$outfile" ] && [ $err -eq 0 ]; then
                                  ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ -f "$outfile" ] && [ "$err" -eq 0 ]; then


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 145:
		if [ $(df -k "$outfile" |
                     ^-- SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 147:
			rm -rf "$outfile" $scale_dir
                                          ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			rm -rf "$outfile" "$scale_dir"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 150:
	elif [ ! -f "$outfile" ] || [ $err -ne 0 ]; then
                                      ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	elif [ ! -f "$outfile" ] || [ "$err" -ne 0 ]; then


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 152:
		rm -rf "$ov_path" $tmpovl_pallete $scale_dir
                                  ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                  ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		rm -rf "$ov_path" "$tmpovl_pallete" "$scale_dir"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 156:
	rm -f $tmpovl_pallete "$ov_path"
              ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f "$tmpovl_pallete" "$ov_path"


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi line 158:
	if [ $err -eq 6 ]; then
             ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ "$err" -eq 6 ]; then

For more information:
  https://www.shellcheck.net/wiki/SC2027 -- The surrounding quotes actually u...
  https://www.shellcheck.net/wiki/SC2034 -- usetransparent appears unused. Ve...
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...