In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 6:
RejectExternalIP=`tdb get RTPServer RejectExtIP_byte`
^--------------^ SC2034 (warning): RejectExternalIP appears unused. Verify use (or export if used externally).
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
RejectExternalIP=$(tdb get RTPServer RejectExtIP_byte)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 9:
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/init.d/firewall.sh line 22:
if [ $IPv6_Enabled -eq "1" ]; then
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$IPv6_Enabled" -eq "1" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 32:
if [ $IPv6_Enabled -eq "1" ]; then
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$IPv6_Enabled" -eq "1" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 49:
echo -n "Startting firewall..."
^-- 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/etc/rc.d/init.d/firewall.sh line 51:
[ -x $binary_v4 ] || die "$binary_v4 is not a valid application"
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -x "$binary_v4" ] || die "$binary_v4 is not a valid application"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 52:
if [ $IPv6_Enabled -eq "1" ]; then
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$IPv6_Enabled" -eq "1" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 53:
[ -x $binary_v6 ] || die "$binary_v6 is not a valid application"
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -x "$binary_v6" ] || die "$binary_v6 is not a valid application"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 55:
[ -d $prefix ] && export PREFIX=$prefix
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -d "$prefix" ] && export PREFIX="$prefix"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 56:
export LD_LIBRARY_PATH=$prefix/lib
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
export LD_LIBRARY_PATH="$prefix"/lib
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 57:
eval $(loadDBSetting)
^--------------^ 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/init.d/firewall.sh line 58:
if [ "$Enable_byte" = "1" ]; then
^----------^ SC2154 (warning): Enable_byte is referenced but not assigned.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 59:
if [ "$Action_byte" = "0" ]; then
^----------^ SC2154 (warning): Action_byte is referenced but not assigned.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 66:
if [ $IPv6_Enabled -eq "1" ]; then
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$IPv6_Enabled" -eq "1" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 71:
if [ "$ActionSet_ls" != "" ]; then
^-----------^ SC2154 (warning): ActionSet_ls is referenced but not assigned.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 74:
if [ "$(echo $ip | grep -)" != "" ]; then
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$(echo "$ip" | grep -)" != "" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 75:
$binary_v4 -I INPUT -m iprange --src-range $ip -j $action
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$binary_v4 -I INPUT -m iprange --src-range "$ip" -j $action
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 77:
$binary_v4 -A INPUT -s $ip -j $action
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$binary_v4 -A INPUT -s "$ip" -j $action
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 81:
if [ $IPv6_Enabled -eq "1" ]; then
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$IPv6_Enabled" -eq "1" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 82:
if [ "$Action6Set_ls" != "" ]; then
^------------^ SC2154 (warning): Action6Set_ls is referenced but not assigned.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 85:
if [ "$(echo $ip | grep -)" != "" ]; then
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$(echo "$ip" | grep -)" != "" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 86:
$binary_v6 -I INPUT -m iprange --src-range $ip -j $action
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$binary_v6 -I INPUT -m iprange --src-range "$ip" -j $action
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 88:
$binary_v6 -A INPUT -s $ip -j $action
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$binary_v6 -A INPUT -s "$ip" -j $action
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 92:
if [ "$AdminAllowOn_byte" = "1" ] && [ "$AdminAllowAddr_ss" != "" ]; then
^----------------^ SC2154 (warning): AdminAllowOn_byte is referenced but not assigned.
^----------------^ SC2154 (warning): AdminAllowAddr_ss is referenced but not assigned.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 93:
if [ "$(echo $AdminAllowAddr_ss | grep :)" != "" ]; then
^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$(echo "$AdminAllowAddr_ss" | grep :)" != "" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 94:
$binary_v6 -I INPUT -s $AdminAllowAddr_ss -j ACCEPT
^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$binary_v6 -I INPUT -s "$AdminAllowAddr_ss" -j ACCEPT
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 96:
$binary_v4 -I INPUT -s $AdminAllowAddr_ss -j ACCEPT
^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$binary_v4 -I INPUT -s "$AdminAllowAddr_ss" -j ACCEPT
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 107:
if [ $IPv6_Enabled -eq "1" ]; then
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$IPv6_Enabled" -eq "1" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/firewall.sh line 121:
[ "$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/init.d/firewall.sh line 126:
export XTABLES_LIBDIR=$prefix/lib/xtables/
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
export XTABLES_LIBDIR="$prefix"/lib/xtables/
For more information:
https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ...
https://www.shellcheck.net/wiki/SC2034 -- RejectExternalIP appears unused. ...
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...