In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 6:
	. /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/netifd/proto/ppp.sh line 7:
	. /lib/functions/network.sh
          ^-----------------------^ SC1091 (info): Not following: /lib/functions/network.sh was not specified as input (see shellcheck -x).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 8:
	. ../netifd-proto.sh
          ^----------------^ SC1091 (info): Not following: ../netifd-proto.sh was not specified as input (see shellcheck -x).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 14:
	local subnets=$1
        ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	local subnets="$1"


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 15:
	local res
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 16:
	local res_mask
        ^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 19:
		local addr="${subnet%%/*}"
                ^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 20:
		local mask="${subnet#*/}"
                ^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 22:
		if [ -n "$res_mask" -a "$mask" != 32 ]; 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/lib/netifd/proto/ppp.sh line 38:
	local errorcode=$1
        ^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                        ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	local errorcode="$1"


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 88:
	local config="$1"; shift
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 89:
	local localip
        ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 93:
	[ ! -e /proc/sys/net/ipv6 ] && ipv6=0 || json_get_var ipv6 ipv6
                                    ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 97:
	elif [ -z "$ipv6" -o "$ipv6" = auto ]; then
                          ^-- SC2166 (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 116:
		local subnets
                ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 128:
	local lcp_failure="${keepalive%%[, ]*}"
        ^---------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 129:
	local lcp_interval="${keepalive##*[, ]}"
        ^----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 130:
	local lcp_adaptive="lcp-echo-adaptive"
        ^----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 148:
		$demand $persist maxfail $maxfail \
                ^-----^ 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: 
		"$demand" "$persist" maxfail "$maxfail" \


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 158:
		"$@" $pppd_options
                     ^-----------^ SC2154 (warning): pppd_options is referenced but not assigned.
                     ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		"$@" "$pppd_options"


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 162:
	local interface="$1"
        ^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 163:
	local errorstring=$(ppp_exitcode_tostring $ERROR)
        ^---------------^ 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.

Did you mean: 
	local errorstring=$(ppp_exitcode_tostring "$ERROR")


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 198:
	local config="$1"
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 201:
	ppp_generic_setup "$config" "$device"
                                     ^-----^ SC2154 (warning): device is referenced but not assigned.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 217:
	local config="$1"
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 218:
	local iface="$2"
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 255:
	local config="$1"
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 256:
	local iface="$2"
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 271:
		${atmdev:+$atmdev.}${vpi:-8}.${vci:-35} \
                                   ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                             ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		${atmdev:+$atmdev.}"${vpi:-8}"."${vci:-35}" \


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 283:
	available=1
        ^-------^ SC2034 (warning): available appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 284:
	no_device=1
        ^-------^ SC2034 (warning): no_device appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 285:
	lasterror=1
        ^-------^ SC2034 (warning): lasterror appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 289:
	local config="$1"
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 290:
	local iface="$2"
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 292:
	local ip serv_addr server interface
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 296:
			( proto_add_host_dependency "$config" "$ip" $interface )
                                                                    ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			( proto_add_host_dependency "$config" "$ip" "$interface" )


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 307:
	local load
        ^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 317:
		pptp_server $server \
                            ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		pptp_server "$server" \


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 327:
	[ -f /usr/lib/pppd/*/rp-pppoe.so ] && add_protocol pppoe
             ^-------------------------^ SC2144 (error): -f doesn't work with globs. Use a for loop.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 328:
	[ -f /usr/lib/pppd/*/pppoatm.so ] && add_protocol pppoa
             ^------------------------^ SC2144 (error): -f doesn't work with globs. Use a for loop.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/proto/ppp.sh line 329:
	[ -f /usr/lib/pppd/*/pptp.so ] && add_protocol pptp
             ^---------------------^ SC2144 (error): -f doesn't work with globs. Use a for loop.

For more information:
  https://www.shellcheck.net/wiki/SC2144 -- -f doesn't work with globs. Use a...
  https://www.shellcheck.net/wiki/SC2034 -- available appears unused. Verify ...
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...