In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 4:
ac_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/sbin/write_mac_rtl8723bu.sh line 5:
ac_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/sbin/write_mac_rtl8723bu.sh line 6:
ac_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/sbin/write_mac_rtl8723bu.sh line 7:
ac_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/sbin/write_mac_rtl8723bu.sh line 8:
ac_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/sbin/write_mac_rtl8723bu.sh line 9:
ac_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/sbin/write_mac_rtl8723bu.sh line 16:
echo rtwpriv wlan0 efuse_set btwmap,3C,$mac_b6$mac_b5$mac_b4$mac_b3$mac_b2$mac_b1
^-----^ 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.
^-----^ 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:
echo rtwpriv wlan0 efuse_set btwmap,3C,"$mac_b6""$mac_b5""$mac_b4""$mac_b3""$mac_b2""$mac_b1"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 18:
echo MacAddress=$mac_addr | pibinfo set
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo MacAddress="$mac_addr" | pibinfo set
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 22:
rtwpriv wlan0 efuse_set btwmap,3C,$mac_b6$mac_b5$mac_b4$mac_b3$mac_b2$mac_b1
^-----^ 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.
^-----^ 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:
rtwpriv wlan0 efuse_set btwmap,3C,"$mac_b6""$mac_b5""$mac_b4""$mac_b3""$mac_b2""$mac_b1"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 27:
bt_mac_b6=`rtwpriv wlan0 efuse_get btfmap | grep 0x030 | cut -d ' ' -f 13`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
bt_mac_b6=$(rtwpriv wlan0 efuse_get btfmap | grep 0x030 | cut -d ' ' -f 13)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 28:
bt_mac_b5=`rtwpriv wlan0 efuse_get btfmap | grep 0x030 | cut -d ' ' -f 14`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
bt_mac_b5=$(rtwpriv wlan0 efuse_get btfmap | grep 0x030 | cut -d ' ' -f 14)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 29:
bt_mac_b4=`rtwpriv wlan0 efuse_get btfmap | grep 0x030 | cut -d ' ' -f 15`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
bt_mac_b4=$(rtwpriv wlan0 efuse_get btfmap | grep 0x030 | cut -d ' ' -f 15)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 30:
bt_mac_b3=`rtwpriv wlan0 efuse_get btfmap | grep 0x030 | cut -d ' ' -f 16`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
bt_mac_b3=$(rtwpriv wlan0 efuse_get btfmap | grep 0x030 | cut -d ' ' -f 16)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 31:
bt_mac_b2=`rtwpriv wlan0 efuse_get btfmap | grep 0x040 | cut -d ' ' -f 1 | cut -c 7-8`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
bt_mac_b2=$(rtwpriv wlan0 efuse_get btfmap | grep 0x040 | cut -d ' ' -f 1 | cut -c 7-8)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 32:
bt_mac_b1=`rtwpriv wlan0 efuse_get btfmap | grep 0x040 | cut -d ' ' -f 2`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
bt_mac_b1=$(rtwpriv wlan0 efuse_get btfmap | grep 0x040 | cut -d ' ' -f 2)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 41:
printf "pibinfo MacAddress:\t%s\n" `pibinfo MacAddress`
^------------------^ SC2046 (warning): Quote this to prevent word splitting.
^------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
printf "pibinfo MacAddress:\t%s\n" $(pibinfo MacAddress)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/write_mac_rtl8723bu.sh line 42:
printf "BT MAC address:\t\t%s:%s:%s:%s:%s:%s\n" $bt_mac_b1 $bt_mac_b2 $bt_mac_b3 $bt_mac_b4 $bt_mac_b5 $bt_mac_b6
^--------^ 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.
^--------^ 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:
printf "BT MAC address:\t\t%s:%s:%s:%s:%s:%s\n" "$bt_mac_b1" "$bt_mac_b2" "$bt_mac_b3" "$bt_mac_b4" "$bt_mac_b5" "$bt_mac_b6"
For more information:
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le...