In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 5:
echo -n "\
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 19:
ntpEnable=$(tdb get NTPClient Enable_byte)
^-------^ SC2034 (warning): ntpEnable appears unused. Verify use (or export if used externally).
^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
^---------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 20:
dhcpNtpType=$(tdb get NTPClient DHCPNTPEnable_byte)
^---------^ SC2034 (warning): dhcpNtpType appears unused. Verify use (or export if used externally).
^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 24:
[ -f /tmp/wifi-led.pid ] && kill -USR1 `cat /tmp/wifi-led.pid`
^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
^---------------------^ SC2046 (warning): Quote this to prevent word splitting.
^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
Did you mean:
[ -f /tmp/wifi-led.pid ] && kill -USR1 $(cat /tmp/wifi-led.pid)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 35:
eval $(dumpNetworkKeys | tdb get Network)
^-- 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/sbin/udhcpc.sh line 40:
/sbin/ifconfig $interface 0.0.0.0
^--------^ SC2154 (warning): interface is referenced but not assigned.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
/sbin/ifconfig "$interface" 0.0.0.0
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 42:
if [ "$LinkLocalIP_byte" -eq 1 ]
^---------------^ SC2154 (warning): LinkLocalIP_byte is referenced but not assigned.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 46:
/sbin/ifconfig $interface $Address_ss netmask $Netmask_ss
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---------^ SC2154 (warning): Address_ss is referenced but not assigned.
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---------^ SC2154 (warning): Netmask_ss is referenced but not assigned.
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
/sbin/ifconfig "$interface" "$Address_ss" netmask "$Netmask_ss"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 47:
route add default gw $Gateway_ss $interface
^---------^ SC2154 (warning): Gateway_ss is referenced but not assigned.
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
route add default gw "$Gateway_ss" "$interface"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 52:
[ $interface = "wlan0" ] && wlan stop_ap
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$interface" = "wlan0" ] && wlan stop_ap
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 54:
eval $(dumpNetworkKeys | tdb get Network)
^-- 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/sbin/udhcpc.sh line 56:
if [ "$DHCPIPEnable_byte" -ne 0 ]; then
^----------------^ SC2154 (warning): DHCPIPEnable_byte is referenced but not assigned.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 58:
/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
^--------^ 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:
/sbin/ifconfig "$interface" "$ip" "$BROADCAST" "$NETMASK"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 64:
printf "ip='%s'\n" $ip > /tmp/dhcptemp.log.new
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "ip='%s'\n" "$ip" > /tmp/dhcptemp.log.new
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 65:
printf "interface='%s'\n" $interface >> /tmp/dhcptemp.log.new
^-- SC2129 (style): Consider using { cmd1; cmd2; } >> file instead of individual redirects.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "interface='%s'\n" "$interface" >> /tmp/dhcptemp.log.new
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 66:
printf "broadcast='%s'\n" $broadcast >> /tmp/dhcptemp.log.new
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "broadcast='%s'\n" "$broadcast" >> /tmp/dhcptemp.log.new
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 67:
printf "subnet='%s'\n" $subnet >> /tmp/dhcptemp.log.new
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "subnet='%s'\n" "$subnet" >> /tmp/dhcptemp.log.new
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 68:
printf "router='%s'\n" $router >> /tmp/dhcptemp.log.new
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "router='%s'\n" "$router" >> /tmp/dhcptemp.log.new
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 69:
printf "meteric='%s'\n" $metric >> /tmp/dhcptemp.log.new
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "meteric='%s'\n" "$metric" >> /tmp/dhcptemp.log.new
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 70:
printf "domain='%s'\n" $domain >> /tmp/dhcptemp.log.new
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "domain='%s'\n" "$domain" >> /tmp/dhcptemp.log.new
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 71:
printf "dns='%s'\n" $dns >> /tmp/dhcptemp.log.new
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "dns='%s'\n" "$dns" >> /tmp/dhcptemp.log.new
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 73:
if [ -z $ip ] || [ -z $subnet ] || [ -z $router ] || [ -z $dns ]; then
^-^ 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:
if [ -z "$ip" ] || [ -z "$subnet" ] || [ -z "$router" ] || [ -z "$dns" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 96:
while route del default gw 0.0.0.0 dev $interface ; do
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
while route del default gw 0.0.0.0 dev "$interface" ; do
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 102:
metric=`expr $metric + 1`
^----------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^--^ SC2003 (style): expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
metric=$(expr "$metric" + 1)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 103:
route add default gw $i dev $interface metric $metric
^-- 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:
route add default gw "$i" dev "$interface" metric "$metric"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 112:
/sbin/ifconfig $interface $Address_ss netmask $Netmask_ss up
^--------^ 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:
/sbin/ifconfig "$interface" "$Address_ss" netmask "$Netmask_ss" up
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 113:
while route del default gw 0.0.0.0 dev $interface ; do
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
while route del default gw 0.0.0.0 dev "$interface" ; do
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 116:
route add default gw $Gateway_ss dev $interface
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
route add default gw "$Gateway_ss" dev "$interface"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 119:
echo -n > $RESOLV_CONF
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 120:
if [ "$DHCPDNSEnable_byte" -ne 0 ]; then
^-----------------^ SC2154 (warning): DHCPDNSEnable_byte is referenced but not assigned.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 122:
[ -n "$domain" ] && echo search $domain >> $RESOLV_CONF
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -n "$domain" ] && echo search "$domain" >> $RESOLV_CONF
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 125:
echo nameserver $i >> $RESOLV_CONF
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo nameserver "$i" >> $RESOLV_CONF
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 134:
[ $interface = "wlan0" ] && touch /tmp/wifiConnected
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$interface" = "wlan0" ] && touch /tmp/wifiConnected
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 135:
[ $interface = "wlan0" ] && kill -USR1 `cat /tmp/wifiAutoReconnect.pid`
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
[ "$interface" = "wlan0" ] && kill -USR1 $(cat /tmp/wifiAutoReconnect.pid)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 139:
if [ $ret -ne 0 ]; then
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$ret" -ne 0 ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/udhcpc.sh line 140:
if [ `tdb get DLink15 OOBChanged_byte` -eq 0 ]; then
^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
if [ $(tdb get DLink15 OOBChanged_byte) -eq 0 ]; then
For more information:
https://www.shellcheck.net/wiki/SC2034 -- dhcpNtpType appears unused. Verif...
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
https://www.shellcheck.net/wiki/SC2154 -- Address_ss is referenced but not ...