In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 3:
. /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/etc/board.d/02_network line 4:
. /lib/functions/uci-defaults.sh
^----------------------------^ SC1091 (info): Not following: /lib/functions/uci-defaults.sh was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 5:
. /lib/functions/system.sh
^----------------------^ SC1091 (info): Not following: /lib/functions/system.sh was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 14:
local wanports=""
^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 15:
local lanports=""
^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 17:
if [ `swconfig dev rt305x port $port get disable` = "1" ]; then
^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
if [ $(swconfig dev rt305x port $port get disable) = "1" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 20:
if [ `swconfig dev rt305x port $port get lan` = "0" ]; then
^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
if [ $(swconfig dev rt305x port $port get lan) = "0" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 26:
ucidef_add_switch "rt305x" $lanports $wanports "6t@eth0"
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ucidef_add_switch "rt305x" "$lanports" "$wanports" "6t@eth0"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 31:
local board="$1"
^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 36:
dir-615-h1|\
^--------^ SC2221 (warning): This pattern always overrides a later one on line 90.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 90:
dir-615-h1|\
^--------^ SC2222 (warning): This pattern never matches because of a previous pattern on line 36.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 445:
RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^-----------^ SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
^---^ SC2196 (info): egrep is non-standard and deprecated. Use grep -E instead.
Did you mean:
RT3X5X=$(cat /proc/cpuinfo | egrep "(RT3.5|RT5350)")
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 457:
local board="$1"
^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 458:
local lan_mac=""
^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 459:
local wan_mac=""
^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 468:
freestation5|\
^----------^ SC2221 (warning): This pattern always overrides a later one on line 480.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 480:
freestation5|\
^----------^ SC2222 (warning): This pattern never matches because of a previous pattern on line 468.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 517:
wan_mac=$(jboot_config_read -m -i $(find_mtd_part "config") -o 0xE000)
^-----------------------^ SC2046 (warning): Quote this to prevent word splitting.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 541:
lan_mac=`mtd_get_mac_ascii bdinfo "Vfac_mac "`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
lan_mac=$(mtd_get_mac_ascii bdinfo "Vfac_mac ")
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 628:
local index="$(find_mtd_index "board_data")"
^---------^ 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/etc/board.d/02_network line 655:
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 656:
[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" $wan_mac
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" "$wan_mac"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 661:
ramips_setup_interfaces $board
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ramips_setup_interfaces "$board"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/board.d/02_network line 662:
ramips_setup_macs $board
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ramips_setup_macs "$board"
For more information:
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...
https://www.shellcheck.net/wiki/SC2221 -- This pattern always overrides a l...