In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 4:
. /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/dhcp.script line 5:
. /lib/netifd/netifd-proto.sh
^-------------------------^ SC1091 (info): Not following: /lib/netifd/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/dhcp.script line 8:
local max=128
^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 9:
while [ -n "$1" -a -n "$2" -a $max -gt 0 ]; do
^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
^-- 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/dhcp.script line 10:
proto_add_ipv4_route "${1%%/*}" "${1##*/}" "$2" "$ip"
^-^ SC2154 (warning): ip is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 11:
max=$(($max-1))
^--^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 21:
local ip_net
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 22:
eval "$(ipcalc.sh "$ip/$mask")";ip_net="$NETWORK"
^---^ SC2154 (warning): mask is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 24:
local i
^-----^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 25:
for i in $router; do
^-----^ SC2154 (warning): router is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 26:
local gw_net
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 32:
local r
^-----^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 39:
[ -n "$staticroutes" ] && set_classless_routes $staticroutes
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -n "$staticroutes" ] && set_classless_routes "$staticroutes"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 40:
[ -n "$msstaticroutes" ] && set_classless_routes $msstaticroutes
^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -n "$msstaticroutes" ] && set_classless_routes "$msstaticroutes"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 42:
for i in $dns; do
^--^ SC2154 (warning): dns is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 45:
for i in $domain; do
^-----^ SC2154 (warning): domain is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 62:
if [ "$IFACE6RD" != 0 -a -n "$ip6rd" ]; 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/dhcp.script line 63:
local v4mask="${ip6rd%% *}"
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 65:
local ip6rdprefixlen="${ip6rd%% *}"
^------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 67:
local ip6rdprefix="${ip6rd%% *}"
^---------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 69:
local ip6rdbr="${ip6rd%% *}"
^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 71:
[ -n "$ZONE" ] || ZONE=$(fw3 -q network $INTERFACE 2>/dev/null)
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -n "$ZONE" ] || ZONE=$(fw3 -q network "$INTERFACE" 2>/dev/null)
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/netifd/dhcp.script line 72:
[ -z "$IFACE6RD" -o "$IFACE6RD" = 1 ] && IFACE6RD=${INTERFACE}_6
^-- 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/dhcp.script line 108:
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user "$@"
^--------------^ SC1091 (info): Not following: /etc/udhcpc.user was not specified as input (see shellcheck -x).
^--^ SC2240 (warning): The dot command does not support arguments in sh/dash. Set them as variables.
For more information:
https://www.shellcheck.net/wiki/SC2154 -- dns is referenced but not assigned.
https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...
https://www.shellcheck.net/wiki/SC2240 -- The dot command does not support ...