In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 7:
. /lib/rcscripts/sh/files.sh
  ^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/files.sh was not specified as input (see shellcheck -x).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 23:
[ -f "$root_password_file" ] && [ -r "$root_password_file" ] || {
                             ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 42:
	if [ $uid -ge 1000 ] && [ $uid -le 60000 ] || [ $uid = 0 ]; then
             ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                  ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                        ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ "$uid" -ge 1000 ] && [ "$uid" -le 60000 ] || [ "$uid" = 0 ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 46:
		password=${password#$username:}
                                    ^-------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.

Did you mean: 
		password=${password#"$username":}


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 68:
			$(echo "$user_list" | grep -q -w "$username") ||
                        ^-- SC2091 (warning): Remove surrounding $() to avoid executing output (or use eval if intentional).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 115:
		echo -e "$admin_users\n$operator_users\n$viewer_users\n$ptz_users" > "$new_group_file"
                     ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 120:
		if [ $uid -ge 1000 ] && [ $uid -le 60000 ]; then
                     ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                          ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		if [ "$uid" -ge 1000 ] && [ "$uid" -le 60000 ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 144:
	echo -e "$new_passwd_file" > "$passwd_file"
             ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 193:
	case ${line##$group:} in
                     ^----^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.

Did you mean: 
	case ${line##"$group":} in


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/user-manager line 201:
	[ "${line#${line%?}}" = ':' ] || comma=','
                  ^-------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.

Did you mean: 
	[ "${line#"${line%?}"}" = ':' ] || comma=','

For more information:
  https://www.shellcheck.net/wiki/SC2091 -- Remove surrounding $() to avoid e...
  https://www.shellcheck.net/wiki/SC3037 -- In POSIX sh, echo flags are undef...
  https://www.shellcheck.net/wiki/SC1091 -- Not following: /lib/rcscripts/sh/...