In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/log line 5:
START=12
^---^ 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/log line 6:
STOP=89
^--^ 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/log line 9:
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/log line 35:
[ $log_buffer_size -eq 0 -a $log_size -gt 0 ] && log_buffer_size=$log_size
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$log_buffer_size" -eq 0 -a "$log_size" -gt 0 ] && log_buffer_size=$log_size
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/log line 36:
[ $log_buffer_size -eq 0 ] && log_buffer_size=64
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$log_buffer_size" -eq 0 ] && log_buffer_size=64
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/log line 46:
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/log line 47:
local pid_file="/var/run/logread.${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/log line 65:
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/log line 66:
local pid_file="/var/run/logread.${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/log line 72:
[ "${log_remote}" -ne 0 ] || return
^-----------^ SC2154 (warning): log_remote is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/log line 77:
procd_set_param command "$PROG" -f -h "$log_hostname" -r "$log_ip" "${log_port}" -p "$pid_file"
^---------^ SC2154 (warning): log_port is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/log line 78:
case "${log_proto}" in
^----------^ SC2154 (warning): log_proto is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/log line 80:
"tcp") [ "${log_trailer_null}" -eq 1 ] && procd_append_param command -0;
^-----------------^ SC2154 (warning): log_trailer_null is referenced but not assigned.
For more information:
https://www.shellcheck.net/wiki/SC2034 -- START appears unused. Verify use ...
https://www.shellcheck.net/wiki/SC2154 -- log_port is referenced but not as...
https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...