In /logs/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract/etc/events/AUTOCONFIG.sh line 3:
devname=`xmldbc -g /runtime/tty/entry:1/cmdport/devname`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
devname=$(xmldbc -g /runtime/tty/entry:1/cmdport/devname)
In /logs/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract/etc/events/AUTOCONFIG.sh line 7:
chat -e -v -c -D $devname OK-AT+CIMI-OK
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
chat -e -v -c -D "$devname" OK-AT+CIMI-OK
In /logs/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract/etc/events/AUTOCONFIG.sh line 11:
echo [$0]... No get Auto config infor,try again[$i]... > /dec/console
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo ["$0"]... No get Auto config infor,try again[$i]... > /dec/console
In /logs/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract/etc/events/AUTOCONFIG.sh line 15:
sim_status=`cat /var/run/chat_xmlnode.conf | grep SIM`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
sim_status=$(cat /var/run/chat_xmlnode.conf | grep SIM)
In /logs/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract/etc/events/AUTOCONFIG.sh line 18:
mcc=`cat /var/run/chat_xmlnode.conf | grep mcc= | scut -f 2`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
mcc=$(cat /var/run/chat_xmlnode.conf | grep mcc= | scut -f 2)
In /logs/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract/etc/events/AUTOCONFIG.sh line 19:
mnc1=`cat /var/run/chat_xmlnode.conf | grep mnc_1= | scut -f 2`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
mnc1=$(cat /var/run/chat_xmlnode.conf | grep mnc_1= | scut -f 2)
In /logs/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract/etc/events/AUTOCONFIG.sh line 20:
mnc2=`cat /var/run/chat_xmlnode.conf | grep mnc_2= | scut -f 2`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
mnc2=$(cat /var/run/chat_xmlnode.conf | grep mnc_2= | scut -f 2)
In /logs/firmware/unblob_extracted/firmware_extract/DIR-600_fw_revb5_214b01_ALL_de_20130122/dir600b_v2.14_d1mg.bin_extract/1179788-3612812.squashfs_v4_le_extract/etc/events/AUTOCONFIG.sh line 23:
xmldbc -P /etc/events/AUTOCONFIG.php -V mcc=$mcc -V mnc1=$mnc1 -V mnc2=$mnc2
^--^ 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:
xmldbc -P /etc/events/AUTOCONFIG.php -V mcc="$mcc" -V mnc1="$mnc1" -V mnc2="$mnc2"
For more information:
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le...
[*] Source file AUTOCONFIG.sh