In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 4:
START=99
^---^ SC2034 (warning): START appears unused. Verify use (or export if used externally).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 5:
USE_PROCD=1
^-------^ SC2034 (warning): USE_PROCD appears unused. Verify use (or export if used externally).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 10:
local quickleave verbose
^----------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 14:
[ $verbose = "0" ] && logopts="-d"
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$verbose" = "0" ] && logopts="-d"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 15:
[ $verbose = "2" ] && logopts="-v"
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$verbose" = "2" ] && logopts="-v"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 16:
[ $verbose = "3" ] && logopts="-v -v"
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$verbose" = "3" ] && logopts="-v -v"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 20:
[ $quickleave -gt 0 ] && echo "quickleave" >> /var/etc/igmpproxy.conf
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$quickleave" -gt 0 ] && echo "quickleave" >> /var/etc/igmpproxy.conf
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 26:
local network direction altnets device up
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 28:
config_get network $1 network
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
config_get network "$1" network
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 29:
config_get direction $1 direction
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
config_get direction "$1" direction
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 30:
config_get altnets $1 altnet
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
config_get altnets "$1" altnet
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 32:
local status="$(ubus -S call "network.interface.$network" status)"
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^----^ SC2155 (warning): Declare and assign separately to avoid masking return values.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 39:
[ -n "$device" -a "$up" = "1" ] || {
^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 46:
[[ "$direction" = "upstream" ]] && has_upstream=1
^-----------------------------^ SC3010 (warning): In POSIX sh, [[ ]] is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 48:
echo -e "\nphyint $device $direction ratelimit 0 threshold 1" >> /var/etc/igmpproxy.conf
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 51:
local altnet
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 53:
echo -e "\taltnet $altnet" >> /var/etc/igmpproxy.conf
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 59:
local network
^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 61:
config_get network $1 network
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
config_get network "$1" network
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 62:
procd_add_interface_trigger "interface.*" $network /etc/init.d/igmpproxy reload
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
procd_add_interface_trigger "interface.*" "$network" /etc/init.d/igmpproxy reload
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 66:
config_get direction $1 direction
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
config_get direction "$1" direction
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 67:
config_get zone $1 zone
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
config_get zone "$1" zone
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 69:
[[ "$direction" = "downstream" && ! -z "$zone" ]] || return 0
^-- SC3010 (warning): In POSIX sh, [[ ]] is undefined.
^-- SC2236 (style): Use -n instead of ! -z.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 95:
config_get direction $1 direction
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
config_get direction "$1" direction
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 96:
config_get zone $1 zone
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
config_get zone "$1" zone
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 98:
[ ! -z "$zone" ] || return
^-- SC2236 (style): Use -n instead of ! -z.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 108:
[[ "$direction" = "upstream" ]] && {
^-----------------------------^ SC3010 (warning): In POSIX sh, [[ ]] is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 131:
[ -n "$logopts" ] && procd_append_param command $logopts
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -n "$logopts" ] && procd_append_param command "$logopts"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/igmpproxy line 134:
procd_set_param netdev $netdevs
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
procd_set_param netdev "$netdevs"
For more information:
https://www.shellcheck.net/wiki/SC2034 -- START appears unused. Verify use ...
https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...
https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...