In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 4:
. /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/lib/network/config.sh line 7:
local device="$1"
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 8:
local ifdev ifl3dev ifobj
^-----------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 9:
for ifobj in `ubus list network.interface.\*`; do
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
for ifobj in $(ubus list network.interface.\*); do
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 12:
json_load "$(ifstatus $interface)"
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
json_load "$(ifstatus "$interface")"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 15:
if [[ "$device" = "$ifdev" ]] || [[ "$device" = "$ifl3dev" ]]; then
^------------------------^ SC3010 (warning): In POSIX sh, [[ ]] is undefined.
^--------------------------^ SC3010 (warning): In POSIX sh, [[ ]] is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 31:
local _data="$(ubus -S call "$1" "$2")"
^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^---^ SC2155 (warning): Declare and assign separately to avoid masking return values.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 39:
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/network/config.sh line 40:
local ifname type device l3dev
^----------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 58:
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/network/config.sh line 65:
local iface="$1"
^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 66:
local config="$2"
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/network/config.sh line 73:
[ -n "$2" ] && \
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
For more information:
https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...
https://www.shellcheck.net/wiki/SC3010 -- In POSIX sh, [[ ]] is undefined.
https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.