In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 5:
START=19
^---^ 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/dropbear line 6:
STOP=50
^--^ SC2034 (warning): STOP 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/dropbear line 8:
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/dropbear line 12:
EXTRA_COMMANDS="killclients"
^------------^ SC2034 (warning): EXTRA_COMMANDS 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/dropbear line 13:
EXTRA_HELP=" killclients Kill ${NAME} processes except servers and yourself"
^--------^ SC2034 (warning): EXTRA_HELP 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/dropbear line 17:
local ipaddrs="$1"
^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 18:
local port="$2"
^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 51:
local ipaddrs
^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 67:
[ "${enable}" = "0" ] && return 1
^-------^ SC2154 (warning): enable is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 68:
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
^---------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 69:
local pid_file="/var/run/${NAME}.${PIDCOUNT}.pid"
^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 73:
[ "${PasswordAuth}" -eq 0 ] && procd_append_param command -s
^-------------^ SC2154 (warning): PasswordAuth is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 74:
[ "${GatewayPorts}" -eq 1 ] && procd_append_param command -a
^-------------^ SC2154 (warning): GatewayPorts is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 75:
[ "${RootPasswordAuth}" -eq 0 ] && procd_append_param command -g
^-----------------^ SC2154 (warning): RootPasswordAuth is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 76:
[ "${RootLogin}" -eq 0 ] && procd_append_param command -w
^----------^ SC2154 (warning): RootLogin is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 79:
append_ports "${ipaddrs}" "${Port}"
^-----^ SC2154 (warning): Port is referenced but not assigned (did you mean 'port'?).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 80:
[ "${IdleTimeout}" -ne 0 ] && procd_append_param command -I "${IdleTimeout}"
^------------^ SC2154 (warning): IdleTimeout is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 81:
[ "${SSHKeepAlive}" -ne 0 ] && procd_append_param command -K "${SSHKeepAlive}"
^-------------^ SC2154 (warning): SSHKeepAlive is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 82:
[ "${MaxAuthTries}" -ne 0 ] && procd_append_param command -T "${MaxAuthTries}"
^-------------^ SC2154 (warning): MaxAuthTries is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 83:
[ "${RecvWindowSize}" -gt 0 -a "${RecvWindowSize}" -le 1048576 ] && \
^---------------^ SC2154 (warning): RecvWindowSize is referenced but not assigned.
^-- 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/dropbear line 85:
[ "${mdns}" -ne 0 ] && procd_add_mdns "ssh" "tcp" "$Port" "daemon=dropbear"
^-----^ SC2154 (warning): mdns is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 92:
for keytype in rsa; do
^-^ SC2043 (warning): This loop will only ever run once. Bad quoting or missing glob/expansion?
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 95:
[ -f /tmp/$key -o -s /etc/$key ] || {
^-- SC2166 (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 99:
/usr/bin/dropbearkey -t $keytype -f /tmp/$key 2>&- >&- && exec /etc/rc.common "$initscript" start
^---------^ SC2154 (warning): initscript is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 118:
[ "${enable}" = "1" ] && interfaces=" ${interface} ${interfaces}"
^----------^ SC2154 (warning): interface is referenced but not assigned (did you mean 'Interface'?).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 131:
. /lib/functions.sh
^---------------^ SC1091 (info): Not following: /lib/functions.sh was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 132:
. /lib/functions/network.sh
^-----------------------^ SC1091 (info): Not following: /lib/functions/network.sh was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 140:
local interfaces
^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 149:
procd_add_interface_trigger "interface.*" $n /etc/init.d/dropbear reload
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
procd_add_interface_trigger "interface.*" "$n" /etc/init.d/dropbear reload
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 163:
local ignore=''
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 164:
local server
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 165:
local pid
^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 172:
pid=`cut -d ' ' -f 4 "/proc/${pid}/stat"`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
pid=$(cut -d ' ' -f 4 "/proc/${pid}/stat")
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 183:
for server in `cat /var/run/${NAME}.*.pid`
^--------------------------^ SC2013 (info): To read lines rather than words, pipe/redirect to a 'while read' loop.
^--------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
for server in $(cat /var/run/${NAME}.*.pid)
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 189:
local skip
^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 190:
for pid in `pidof "${NAME}"`
^---------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
for pid in $(pidof "${NAME}")
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/dropbear line 211:
kill -KILL ${pid}
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
kill -KILL "${pid}"
For more information:
https://www.shellcheck.net/wiki/SC2034 -- EXTRA_COMMANDS appears unused. Ve...
https://www.shellcheck.net/wiki/SC2043 -- This loop will only ever run once...
https://www.shellcheck.net/wiki/SC2154 -- GatewayPorts is referenced but no...