In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 9:
	. /lib/functions.sh
          ^---------------^ SC1091 (info): Not following: /lib/functions.sh was not specified as input (see shellcheck -x).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 11:
	local board=$(board_name)
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
              ^---^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                    ^-----------^ SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 16:
		local zeroes=/dev/zero
                ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 17:
		local tmpfile=/tmp/wnce2001_checksum
                ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 18:
		local partname=checksum
                ^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 19:
		local mtd=$(find_mtd_part $partname)
                ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                          ^------------------------^ SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 20:
		dd if=$mtd of=$tmpfile bs=80 count=1 2>/dev/null
                      ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		dd if="$mtd" of=$tmpfile bs=80 count=1 2>/dev/null


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 40:
		local firmware_mtd=$(find_mtd_part firmware)
                ^----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^----------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                                   ^-----------------------^ SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 41:
		local rootfs_mtd=$(find_mtd_part rootfs)
                ^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^--------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                                 ^---------------------^ SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 42:
		local rootfs_data_mtd=$(find_mtd_part rootfs_data)
                ^-------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^-------------^ SC2034 (warning): rootfs_data_mtd appears unused. Verify use (or export if used externally).
                      ^-------------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                                      ^--------------------------^ SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 43:
		local rootfs_len=$(grep \"rootfs\" /proc/mtd | awk -F' ' '{print "0x"$2}')
                ^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^--------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                                 ^-- SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 44:
		local rootfs_data_len=$(grep \"rootfs_data\" /proc/mtd | awk -F' ' '{print "0x"$2}')
                ^-------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^-------------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                                      ^-- SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 45:
		local offset=$(echo "$rootfs_len $rootfs_data_len 0x40" | awk -F' ' '{printf "%i",$1-$2-$3}')
                ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                             ^-- SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 46:
		local signature=$(dd if=$rootfs_mtd skip=$offset bs=1 count=4 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"')
                ^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^-------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                                ^-- SC2046 (warning): Quote this to prevent 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: 
		local signature=$(dd if="$rootfs_mtd" skip="$offset" bs=1 count=4 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"')


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/preinit/04_handle_checksumming line 48:
			dd conv=notrunc if=$rootfs_mtd skip=$offset of=$firmware_mtd bs=1 count=64 2>/dev/null
                                           ^---------^ 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: 
			dd conv=notrunc if="$rootfs_mtd" skip="$offset" of="$firmware_mtd" bs=1 count=64 2>/dev/null

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- rootfs_data_mtd appears unused. V...
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...