In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 4:
	local iface ifaces ifc ifname ssid encryption key radio radios
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
              ^---^ SC2034 (warning): iface appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 5:
	local found=0
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
              ^---^ SC2034 (warning): found appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 7:
	. /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/etc/rc.button/wps line 8:
	ubus -S -t 30 listen wps_credentials | while read creds; do
                                                     ^--^ SC2162 (info): read without -r will mangle backslashes.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 13:
		local ifcname="$ifname"
                ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 18:
			json_select $radio
                                    ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			json_select "$radio"


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 22:
				json_select $ifc
                                            ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
				json_select "$ifc"


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 41:
if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
                           ^-- 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/etc/rc.button/wps line 45:
		ubus -S call $ubusobj wps_start && wps_done=1
                             ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		ubus -S call "$ubusobj" wps_start && wps_done=1


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 51:
		ifname="$(echo $ubusobj | cut -d'.' -f2 )"
                               ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		ifname="$(echo "$ubusobj" | cut -d'.' -f2 )"


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 52:
		multi_ap=""
                ^------^ SC2034 (warning): multi_ap appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 54:
			ubus -S call $ubusobj wps_start '{ "multi_ap": true }' && wps_done=1
                                     ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			ubus -S call "$ubusobj" wps_start '{ "multi_ap": true }' && wps_done=1


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/rc.button/wps line 56:
			ubus -S call $ubusobj wps_start && wps_done=1
                                     ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			ubus -S call "$ubusobj" wps_start && wps_done=1

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- found appears unused. Verify use ...
  https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...
  https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.