In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 15:
MODEL=`cat $DEVICE_CONFIG_FILE | grep -v ^#`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
MODEL=$(cat $DEVICE_CONFIG_FILE | grep -v ^#)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 17:
MODEL=`echo $MODEL | cut -d ' ' -f 1`
^-----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
MODEL=$(echo "$MODEL" | cut -d ' ' -f 1)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 18:
vendor=`echo ${MODEL} | cut -d '.' -f 1`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
vendor=$(echo "${MODEL}" | cut -d '.' -f 1)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 19:
product=`echo ${MODEL} | cut -d '.' -f 2`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
product=$(echo "${MODEL}" | cut -d '.' -f 2)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 20:
version=`echo ${MODEL} | cut -d '.' -f 3`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
version=$(echo "${MODEL}" | cut -d '.' -f 3)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 42:
STRING=`cat $WIFI_CONF_FILE | grep -v ^#`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
STRING=$(cat $WIFI_CONF_FILE | grep -v ^#)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 44:
if [ $key_mgmt == "NONE" ]; then
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.
Did you mean:
if [ "$key_mgmt" == "NONE" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 62:
wifi_sta_mode $ssid $passwd
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
wifi_sta_mode "$ssid" "$passwd"
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 64:
STRING=`ifconfig mlan0`
^--------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
STRING=$(ifconfig mlan0)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 67:
macstring=`echo ${macstring} | cut -d ' ' -f 1`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
macstring=$(echo "${macstring}" | cut -d ' ' -f 1)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 69:
mac1=`echo ${macstring} | cut -d ':' -f 5`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
mac1=$(echo "${macstring}" | cut -d ':' -f 5)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 70:
mac2=`echo ${macstring} | cut -d ':' -f 6`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
mac2=$(echo "${macstring}" | cut -d ':' -f 6)
In /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh line 73:
wifi_ap_mode $MAC
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
wifi_ap_mode "$MAC"
For more information:
https://www.shellcheck.net/wiki/SC3014 -- In POSIX sh, == in place of = is ...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le...