In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/enable-remote-logging line 5:
. /lib/rcscripts/sh/error.sh
  ^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/error.sh was not specified as input (see shellcheck -x).


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/enable-remote-logging line 7:
[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] || error "missing argument <IP> <PORT>"
                         ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/enable-remote-logging line 9:
printf 'destination d_remote-syslog { network("%s" transport("udp") port(%s)); };\nlog { source(s_system); destination(d_remote-syslog); };\n' $1 $2 > $REMOTE_FILE
                                                                                                                                               ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                                                                                                  ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
printf 'destination d_remote-syslog { network("%s" transport("udp") port(%s)); };\nlog { source(s_system); destination(d_remote-syslog); };\n' "$1" "$2" > $REMOTE_FILE

For more information:
  https://www.shellcheck.net/wiki/SC1091 -- Not following: /lib/rcscripts/sh/...
  https://www.shellcheck.net/wiki/SC2015 -- Note that A && B || C is not if-t...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...