In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 5:
. /usr/share/libubox/jshn.sh
  ^------------------------^ SC1091 (info): Not following: /usr/share/libubox/jshn.sh was not specified as input (see shellcheck -x).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 8:
[ -s /etc/config/network -a -s /etc/config/system ] && exit 0
                         ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 31:
					local vpi vci encaps payload nameprefix
                                        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 47:
					local type annex firmware tone xfer_mode
                                        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 65:
	local ifname macaddr protocol type ipaddr netmask
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 97:
			local ipad
                        ^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 100:
				*) ipad=${ipaddr:-"192.168.$((addr_offset++)).1"} ;
                                                                         ^-- SC3018 (warning): In POSIX sh, ++ is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 110:
			[ -e /proc/sys/net/ipv6 ] && uci set network.$1.ip6assign='60'
                                                                     ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			[ -e /proc/sys/net/ipv6 ] && uci set network."$1".ip6assign='60'


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 117:
			uci set network.$1.proto='dhcp'
                                        ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			uci set network."$1".proto='dhcp'


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 148:
	local switch="$1"
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 149:
	local port ports role roles num attr val
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 199:
							uci -q set network.@switch_port[-1].$attr="$val"
                                                                                            ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
							uci -q set network.@switch_port[-1]."$attr"="$val"


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 211:
	local key="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 212:
	local vlans
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
              ^---^ SC2034 (warning): vlans appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 221:
		set network.@switch[-1].reset='$reset'
                                               ^----^ SC2154 (warning): reset is referenced but not assigned.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 222:
		set network.@switch[-1].enable_vlan='$enable'
                                                     ^-----^ SC2154 (warning): enable is referenced but not assigned.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 223:
		set network.@switch[-1].blinkrate='$blinkrate'
                                                   ^--------^ SC2154 (warning): blinkrate is referenced but not assigned.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 255:
			local hostname
                        ^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 261:
				local keys key
                                ^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 267:
						local server
                                                ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 279:
	local key="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 280:
	local cfg="rssid_$key"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 281:
	local refresh threshold
        ^---------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 299:
	local key="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 300:
	local cfg="led_$key"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 310:
		set system.$cfg.sysfs='$sysfs'
                                       ^----^ SC2154 (warning): sysfs is referenced but not assigned.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 311:
		set system.$cfg.trigger='$trigger'
                                         ^------^ SC2154 (warning): trigger is referenced but not assigned.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 317:
			local gpio inverted
                        ^-----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 327:
			local device mode
                        ^---------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 337:
			local device
                        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 347:
			local ports port
                        ^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 349:
			uci set system.$cfg.trigger='usbport'
                                       ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			uci set system."$cfg".trigger='usbport'


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 351:
				uci add_list system.$cfg.port=$port
                                                    ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                              ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
				uci add_list system."$cfg".port="$port"


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 356:
			local iface minq maxq offset factor
                        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 369:
			local port_mask speed_mask mode
                        ^-----------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 379:
			local port_state
                        ^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 387:
			local delayon delayoff
                        ^--------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 402:
	local cfg="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 406:
			local name pin default
                        ^--------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 427:
	for key in $keys; do generate_network $key; done
                                              ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	for key in $keys; do generate_network "$key"; done


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 430:
	for key in $keys; do generate_switch $key; done
                                             ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	for key in $keys; do generate_switch "$key"; done


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 438:
	for key in $keys; do generate_rssimon $key; done
                                              ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	for key in $keys; do generate_rssimon "$key"; done


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 441:
	for key in $keys; do generate_gpioswitch $key; done
                                                 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	for key in $keys; do generate_gpioswitch "$key"; done


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/bin/config_generate line 444:
	for key in $keys; do generate_led $key; done
                                          ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	for key in $keys; do generate_led "$key"; done

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- vlans appears unused. Verify use ...
  https://www.shellcheck.net/wiki/SC2154 -- blinkrate is referenced but not a...
  https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...