In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 4:
echo $&commat
^-- SC2068 (error): Double quote array expansions to avoid re-splitting elements.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 15:
[ "$end" = "" ] && [ "$action" != "" ] || showUsage
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 18:
cat /proc/pci 2> /dev/null | grep -q 'PCI.*1814:030[12]'
^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
^-------^ SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 22:
cat /proc/pci 2> /dev/null | grep -q 'PCI.*1814:060[12]'
^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
^-------^ SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 26:
[ -f /proc/bus/usb/devices ] && cat /proc/bus/usb/devices | grep -q 'Vendor=0bda' || lsusb | grep -q 0bda
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
^-------------------^ SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 30:
[ -f /proc/bus/usb/devices ] && cat /proc/bus/usb/devices | grep -q 'Vendor=148f' || lsusb | grep -q 148f
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
^-------------------^ SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 40:
if [ "$1" == AP ]
^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 42:
local profile_path=/etc/RT2870AP.dat
^----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 44:
local profile_path=/etc/RT2870STA.dat
^----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 47:
local buffer_mode_flag=`cat $profile_path | grep EfuseBufferMode=1`
^--------------------^ 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.
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
local buffer_mode_flag=$(cat $profile_path | grep EfuseBufferMode=1)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 58:
insmod /lib/modules/8192eu.ko rtw_channel_plan=$region
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
insmod /lib/modules/8192eu.ko rtw_channel_plan="$region"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 60:
insmod /lib/modules/8192eu.ko rtw_channel_plan=$region rtw_initmac=$(pibinfo MacAddress) rtw_adaptivity_en=$adaptivity_en rtw_adaptivity_mode=$adaptivity_mode $uapsd_ac_enable
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------------------^ SC2046 (warning): Quote this to prevent word splitting.
Did you mean:
insmod /lib/modules/8192eu.ko rtw_channel_plan="$region" rtw_initmac=$(pibinfo MacAddress) rtw_adaptivity_en=$adaptivity_en rtw_adaptivity_mode=$adaptivity_mode $uapsd_ac_enable
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 66:
insmod /lib/modules/8188eu.ko rtw_channel_plan=$region
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
insmod /lib/modules/8188eu.ko rtw_channel_plan="$region"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 68:
insmod /lib/modules/8188eu.ko rtw_channel_plan=$region rtw_initmac=$(pibinfo MacAddress) rtw_adaptivity_en=$adaptivity_en rtw_adaptivity_mode=$adaptivity_mode $uapsd_ac_enable
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------------------^ SC2046 (warning): Quote this to prevent word splitting.
Did you mean:
insmod /lib/modules/8188eu.ko rtw_channel_plan="$region" rtw_initmac=$(pibinfo MacAddress) rtw_adaptivity_en=$adaptivity_en rtw_adaptivity_mode=$adaptivity_mode $uapsd_ac_enable
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 74:
insmod /lib/modules/8723bu.ko rtw_channel_plan=$region
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
insmod /lib/modules/8723bu.ko rtw_channel_plan="$region"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 76:
insmod /lib/modules/8723bu.ko rtw_channel_plan=$region rtw_initmac=$(pibinfo MacAddress) rtw_adaptivity_en=$adaptivity_en rtw_adaptivity_mode=$adaptivity_mode $uapsd_ac_enable
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------------------^ SC2046 (warning): Quote this to prevent word splitting.
Did you mean:
insmod /lib/modules/8723bu.ko rtw_channel_plan="$region" rtw_initmac=$(pibinfo MacAddress) rtw_adaptivity_en=$adaptivity_en rtw_adaptivity_mode=$adaptivity_mode $uapsd_ac_enable
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 86:
cat /etc/RT5370_USB_1T1R_MAIN_V1_6.BIN | uuencode /tmp/RT5370_USB_1T1R_MAIN_V1_6.BIN \
^-- SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 103:
cat /etc/MT7601EEPROM.bin | uuencode /tmp/MT7601EEPROM.bin \
^-------------------^ SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 117:
cat /etc/MT7601EEPROM.bin | uuencode /tmp/MT7601EEPROM.bin \
^-------------------^ SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 150:
let i=$i+2
^---------^ SC3039 (warning): In POSIX sh, 'let' is undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 151:
let j=$j+1
^--------^ SC3039 (warning): In POSIX sh, 'let' is undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 156:
cp /lib/firmware/TXPWR_LMT_$region.txt /tmp/TXPWR_LMT.txt
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cp /lib/firmware/TXPWR_LMT_"$region".txt /tmp/TXPWR_LMT.txt
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 208:
DATE_YEAR=`date | cut -c 25-28`
^-------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
DATE_YEAR=$(date | cut -c 25-28)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 209:
if [ "$DATE_YEAR" -lt "$YEAR_BOUND" -o "$DATE_YEAR" = "" ]; then
^-- SC2166 (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 219:
ifconfig eth0 hw ether $(pibinfo MacAddress)
^-------------------^ SC2046 (warning): Quote this to prevent word splitting.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 248:
MAC_b1=$(echo $MAC_Addr | cut -d':' -f1)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
MAC_b1=$(echo "$MAC_Addr" | cut -d':' -f1)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 249:
MAC_b2=$(echo $MAC_Addr | cut -d':' -f2)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
MAC_b2=$(echo "$MAC_Addr" | cut -d':' -f2)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 250:
MAC_b3=$(echo $MAC_Addr | cut -d':' -f3)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
MAC_b3=$(echo "$MAC_Addr" | cut -d':' -f3)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 251:
MAC_b4=$(echo $MAC_Addr | cut -d':' -f4)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
MAC_b4=$(echo "$MAC_Addr" | cut -d':' -f4)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 252:
MAC_b5=$(echo $MAC_Addr | cut -d':' -f5)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
MAC_b5=$(echo "$MAC_Addr" | cut -d':' -f5)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 253:
MAC_b6=$(echo $MAC_Addr | cut -d':' -f6)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
MAC_b6=$(echo "$MAC_Addr" | cut -d':' -f6)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 256:
if [ $region = 2 ]; then
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$region" = 2 ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/rc.sysinit line 294:
[ -f /etc/log4cpp.conf.default ] && [ -f /tmp/db/log4cpp.conf ] || cp /etc/log4cpp.conf.default /tmp/db/log4cpp.conf
^-- 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/SC2068 -- Double quote array expansions to ...
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...