In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 15:
DEFRUNLEVELSSTART=3
^---------------^ SC2034 (warning): DEFRUNLEVELSSTART appears unused. Verify use (or export if used externally).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 16:
DEFRUNLEVELSSTOP="0 1 2 4 5 6"
^--------------^ SC2034 (warning): DEFRUNLEVELSSTOP appears unused. Verify use (or export if used externally).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 21:
	logger -t ${0##*/} -p INFO -- "$*"
                  ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	logger -t "${0##*/}" -p INFO -- "$*"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 25:
	logger -t ${0##*/} -p WARNING -- "$*"
                  ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	logger -t "${0##*/}" -p WARNING -- "$*"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 29:
	logger -t ${0##*/} -p WARNING -- "$*"
                  ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	logger -t "${0##*/}" -p WARNING -- "$*"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 34:
. /usr/html/axis-cgi/lib/acap_handle_files.sh
  ^-- SC1091 (info): Not following: /usr/html/axis-cgi/lib/acap_handle_files.sh was not specified as input (see shellcheck -x).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 36:
. /usr/html/axis-cgi/lib/preserve.sh
  ^-- SC1091 (info): Not following: /usr/html/axis-cgi/lib/preserve.sh was not specified as input (see shellcheck -x).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 51:
. ./$ADPPACKCFG || {
  ^-----------^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 64:
	XMLCONFFILE=$INSTALLDIR/$DIRNAME/$APPNAME
        ^---------^ SC2034 (warning): XMLCONFFILE appears unused. Verify use (or export if used externally).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 78:
GROUPNAME=$(r=${APPNAME#?};f=${APPNAME%$r};echo $(echo $f | tr [:lower:] [:upper:])$r)
                                       ^-- SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
                                                ^-- SC2046 (warning): Quote this to prevent word splitting.
                                                       ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                                               ^-------^ SC2060 (warning): Quote parameters to tr to prevent glob expansion.
                                                                         ^-------^ SC2060 (warning): Quote parameters to tr to prevent glob expansion.
                                                                                   ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
GROUPNAME=$(r=${APPNAME#?};f=${APPNAME%"$r"};echo $(echo "$f" | tr [:lower:] [:upper:])"$r")


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 103:
PREUPGRADE_LOG=$INSTALLDIR/$APPNAME/preupgrade.log
^------------^ SC2034 (warning): PREUPGRADE_LOG appears unused. Verify use (or export if used externally).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 106:
POSTINSTALL_LOG=$INSTALLDIR/$APPNAME/postinstall.log
^-------------^ SC2034 (warning): POSTINSTALL_LOG appears unused. Verify use (or export if used externally).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 108:
LOGINFOAPPNAME="logger -p INFO -t $APPNAME[0]"
                                  ^-- SC1087 (error): Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 111:
	local respawn=$1
        ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	local respawn="$1"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 113:
	cat <<-EOF > $PKG_ETC_INIT_D_APPNAME.tmp
                     ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	cat <<-EOF > "$PKG_ETC_INIT_D_APPNAME".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 159:
		cat <<-EOF >> $PKG_ETC_INIT_D_APPNAME.tmp
                              ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		cat <<-EOF >> "$PKG_ETC_INIT_D_APPNAME".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 164:
	cat <<-EOF >> $PKG_ETC_INIT_D_APPNAME.tmp
                      ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	cat <<-EOF >> "$PKG_ETC_INIT_D_APPNAME".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 171:
		cat <<-EOF >> $PKG_ETC_INIT_D_APPNAME.tmp
                              ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		cat <<-EOF >> "$PKG_ETC_INIT_D_APPNAME".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 176:
	cat <<-EOF >> $PKG_ETC_INIT_D_APPNAME.tmp
                      ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	cat <<-EOF >> "$PKG_ETC_INIT_D_APPNAME".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 203:
	chmod 755 $PKG_ETC_INIT_D_APPNAME.tmp ||
                  ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 755 "$PKG_ETC_INIT_D_APPNAME".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 205:
	fsynced_write_or_cleanup $PKG_ETC_INIT_D_APPNAME.tmp $PKG_ETC_INIT_D_APPNAME
                                 ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                             ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	fsynced_write_or_cleanup "$PKG_ETC_INIT_D_APPNAME".tmp "$PKG_ETC_INIT_D_APPNAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 210:
	if [ $STARTMODE = auto ]; then
             ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ "$STARTMODE" = auto ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 215:
	cat <<-EOF > $ETC_SYSTEMD_APPNAME.tmp
                     ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	cat <<-EOF > "$ETC_SYSTEMD_APPNAME".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 230:
	chmod 644 $ETC_SYSTEMD_APPNAME.tmp ||
                  ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 644 "$ETC_SYSTEMD_APPNAME".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 232:
	chown root:root $ETC_SYSTEMD_APPNAME.tmp ||
                        ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chown root:root "$ETC_SYSTEMD_APPNAME".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 234:
	fsynced_write_or_cleanup $ETC_SYSTEMD_APPNAME.tmp $ETC_SYSTEMD_APPNAME
                                 ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                          ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	fsynced_write_or_cleanup "$ETC_SYSTEMD_APPNAME".tmp "$ETC_SYSTEMD_APPNAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 238:
	local respawn=$1
        ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	local respawn="$1"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 241:
	cat <<-EOF > $ETC_SYSTEMD_APPNAME.tmp
                     ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	cat <<-EOF > "$ETC_SYSTEMD_APPNAME".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 248:
		cat <<-EOF >> $ETC_SYSTEMD_APPNAME.tmp
                              ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		cat <<-EOF >> "$ETC_SYSTEMD_APPNAME".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 253:
	cat <<-EOF >> $ETC_SYSTEMD_APPNAME.tmp
                      ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	cat <<-EOF >> "$ETC_SYSTEMD_APPNAME".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 263:
	chmod 644 $ETC_SYSTEMD_APPNAME.tmp ||
                  ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 644 "$ETC_SYSTEMD_APPNAME".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 265:
	chown root:root $ETC_SYSTEMD_APPNAME.tmp ||
                        ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chown root:root "$ETC_SYSTEMD_APPNAME".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 267:
	fsynced_write_or_cleanup $ETC_SYSTEMD_APPNAME.tmp $ETC_SYSTEMD_APPNAME
                                 ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                          ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	fsynced_write_or_cleanup "$ETC_SYSTEMD_APPNAME".tmp "$ETC_SYSTEMD_APPNAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 270:
	mkdir -p $ETC_SYSTEMD_APPDIR ||
                 ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	mkdir -p "$ETC_SYSTEMD_APPDIR" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 272:
	cat <<-EOF > $ETC_SYSTEMD_NETFILE.tmp
                     ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	cat <<-EOF > "$ETC_SYSTEMD_NETFILE".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 277:
	chmod 644 $ETC_SYSTEMD_NETFILE.tmp ||
                  ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 644 "$ETC_SYSTEMD_NETFILE".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 279:
	chown root:root $ETC_SYSTEMD_NETFILE.tmp ||
                        ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chown root:root "$ETC_SYSTEMD_NETFILE".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 281:
	fsynced_write_or_cleanup $ETC_SYSTEMD_NETFILE.tmp $ETC_SYSTEMD_NETFILE
                                 ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                          ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	fsynced_write_or_cleanup "$ETC_SYSTEMD_NETFILE".tmp "$ETC_SYSTEMD_NETFILE"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 285:
	local line transfer_conf transfer_link mime_conf mime_link
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 293:
		if [ -h $transfer_link ]; then
                        ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		if [ -h "$transfer_link" ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 294:
			rm -f $transfer_link || error "Failed to remove link: $transfer_link"
                              ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			rm -f "$transfer_link" || error "Failed to remove link: $transfer_link"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 297:
		echo "# $APPNAME config" > $transfer_conf.tmp
                                           ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		echo "# $APPNAME config" > "$transfer_conf".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 309:
		done < "$HTTPD_CONF_LOCAL" > $transfer_conf.tmp
                                             ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		done < "$HTTPD_CONF_LOCAL" > "$transfer_conf".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 310:
		chmod 644 $transfer_conf.tmp
                          ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chmod 644 "$transfer_conf".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 311:
		chown www:www $transfer_conf.tmp
                              ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chown www:www "$transfer_conf".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 313:
		fsynced_write_or_cleanup $transfer_conf.tmp $transfer_conf
                                         ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                            ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		fsynced_write_or_cleanup "$transfer_conf".tmp "$transfer_conf"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 315:
		ln -sf $transfer_conf $transfer_link ||
                       ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                      ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		ln -sf "$transfer_conf" "$transfer_link" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 317:
		chown -h www:www $transfer_link
                                 ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chown -h www:www "$transfer_link"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 326:
		if [ -h $mime_link ]; then
                        ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		if [ -h "$mime_link" ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 327:
			rm -f $mime_link || error "Failed to remove link: $mime_link"
                              ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			rm -f "$mime_link" || error "Failed to remove link: $mime_link"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 330:
		echo "# $APPNAME types" > $mime_conf.tmp
                                          ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		echo "# $APPNAME types" > "$mime_conf".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 332:
			[ -z "$line" ] || printf "AddType $line\n"
                                                 ^---------------^ SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 333:
		done < "$HTTPD_MIME_LOCAL" > $mime_conf.tmp
                                             ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		done < "$HTTPD_MIME_LOCAL" > "$mime_conf".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 334:
		chmod 644 $mime_conf.tmp
                          ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chmod 644 "$mime_conf".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 335:
		chown www:www $mime_conf.tmp
                              ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chown www:www "$mime_conf".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 337:
		fsynced_write_or_cleanup $mime_conf.tmp $mime_conf
                                         ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                        ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		fsynced_write_or_cleanup "$mime_conf".tmp "$mime_conf"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 339:
		ln -sf $mime_conf $mime_link ||
                       ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                  ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		ln -sf "$mime_conf" "$mime_link" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 341:
		chown -h www:www $mime_link
                                 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chown -h www:www "$mime_link"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 346:
	local tmp_file owner cgi_path cgi_path_dir cgi_path_file lic_file
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 347:
	local chown_lic_file=no
        ^------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 348:
	local path_validation_expr='^\(/\([-./_~]\|[[:alnum:]]\|%[[:xdigit:]]\{2\}\)\+[^/]\)*$'
        ^------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 350:
	if [ "$APPTYPE" != lua ] && [ ! -h $ETC_INIT_D_APPNAME ]; then
                                           ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ "$APPTYPE" != lua ] && [ ! -h "$ETC_INIT_D_APPNAME" ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 352:
               ln -sf $PKG_ETC_INIT_D_APPNAME $ETC_INIT_D_APPNAME ||
                      ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                              ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
               ln -sf "$PKG_ETC_INIT_D_APPNAME" "$ETC_INIT_D_APPNAME" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 356:
	if [ ! -h $WEB_DIR/$APPNAME ] && [ -d $INSTALLDIR/$DIRNAME/html ]; 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 [ ! -h $WEB_DIR/"$APPNAME" ] && [ -d $INSTALLDIR/"$DIRNAME"/html ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 357:
		ln -sfn $INSTALLDIR/$DIRNAME/html $WEB_DIR/$APPNAME ||
                                    ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                           ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		ln -sfn $INSTALLDIR/"$DIRNAME"/html $WEB_DIR/"$APPNAME" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 364:
		if [ ! -r $HTTPCGIPATHS ]; then
                          ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		if [ ! -r "$HTTPCGIPATHS" ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 371:
		while read owner cgi_path; do
                      ^--^ SC2162 (info): read without -r will mangle backslashes.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 374:
			printf "%s" "$cgi_path" | grep -q $path_validation_expr ||
                                                          ^-------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			printf "%s" "$cgi_path" | grep -q "$path_validation_expr" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 379:
		done<$HTTPCGIPATHS>$tmp_file
                     ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                   ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		done<"$HTTPCGIPATHS">"$tmp_file"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 381:
		chmod 644 $tmp_file || error "Failed to chmod: $tmp_file"
                          ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chmod 644 "$tmp_file" || error "Failed to chmod: $tmp_file"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 383:
		fsynced_write_or_cleanup $tmp_file $PKG_CONFDIR/$HTTPCGIPATHS
                                         ^-------^ 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: 
		fsynced_write_or_cleanup "$tmp_file" "$PKG_CONFDIR"/"$HTTPCGIPATHS"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 385:
		ln -sf $PKG_CONFDIR/$HTTPCGIPATHS $ETC_TRANSFER_CONF/transfer_$APPNAME.conf ||
                       ^----------^ 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: 
		ln -sf "$PKG_CONFDIR"/"$HTTPCGIPATHS" $ETC_TRANSFER_CONF/transfer_"$APPNAME".conf ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 388:
		while read owner cgi_path; do
                      ^--^ SC2162 (info): read without -r will mangle backslashes.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 393:
					owner=admin
                                        ^---^ SC2209 (warning): Use var=$(command) to assign output (or quote to assign string).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 402:
			cgi_path_dir=$INSTALLDIR/$DIRNAME/html/$(dirname $cgi_path) ||
                                                                         ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			cgi_path_dir=$INSTALLDIR/$DIRNAME/html/$(dirname "$cgi_path") ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 405:
			cgi_path_file=$cgi_path_dir/$(basename $cgi_path) ||
                                                               ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			cgi_path_file=$cgi_path_dir/$(basename "$cgi_path") ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 408:
			mkdir -p $cgi_path_dir ||
                                 ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			mkdir -p "$cgi_path_dir" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 411:
			find $cgi_path_dir -type d | xargs chown sdk:sdk ||
                        ^------------------------^ SC2038 (warning): Use -print0/-0 or -exec + to allow for non-alphanumeric filenames.
                             ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			find "$cgi_path_dir" -type d | xargs chown sdk:sdk ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 414:
			>$cgi_path_file.tmp ||
                        ^-----------------^ SC2188 (warning): This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
                         ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			>"$cgi_path_file".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 417:
			chgrp $owner $cgi_path_file.tmp ||
                              ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                     ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			chgrp "$owner" "$cgi_path_file".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 420:
			chmod 0750 $cgi_path_file.tmp ||
                                   ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			chmod 0750 "$cgi_path_file".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 423:
			fsynced_write_or_cleanup  $cgi_path_file.tmp $cgi_path_file
                                                  ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                     ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			fsynced_write_or_cleanup  "$cgi_path_file".tmp "$cgi_path_file"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 424:
		done<$HTTPCGIPATHS
                     ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		done<"$HTTPCGIPATHS"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 427:
	if [ "$LICENSENAME" ] && [ -d $INSTALLDIR/$DIRNAME/html ]; then
                                                  ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ "$LICENSENAME" ] && [ -d $INSTALLDIR/"$DIRNAME"/html ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 430:
		[ -r $lic_file ] ||
                     ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		[ -r "$lic_file" ] ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 435:
		chmod 0640 $lic_file ||
                           ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chmod 0640 "$lic_file" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 438:
		ln -sf $lic_file $INSTALLDIR/$DIRNAME/html/LICENSE >/dev/null 2>&1 ||
                       ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                             ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		ln -sf "$lic_file" $INSTALLDIR/"$DIRNAME"/html/LICENSE >/dev/null 2>&1 ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 442:
	if [ -d $INSTALLDIR/$DIRNAME/html ]; then
                            ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ -d $INSTALLDIR/"$DIRNAME"/html ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 443:
		for dir in $(find $INSTALLDIR/$DIRNAME/html -type d); do
                           ^-- SC2044 (warning): For loops over find output are fragile. Use find -exec or a while read loop.
                                              ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		for dir in $(find $INSTALLDIR/"$DIRNAME"/html -type d); do


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 444:
			chmod 751 $dir || error "Failed to set permissions html"
                                  ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			chmod 751 "$dir" || error "Failed to set permissions html"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 447:
		install_urls $APPNAME $INSTALLDIR/$DIRNAME/html ||
                             ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                  ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		install_urls "$APPNAME" $INSTALLDIR/"$DIRNAME"/html ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 450:
		chown $APPUSR:www $INSTALLDIR/$DIRNAME/html ||
                                              ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chown $APPUSR:www $INSTALLDIR/"$DIRNAME"/html ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 455:
		chown $APPUSR:www $lic_file ||
                                  ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chown $APPUSR:www "$lic_file" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 459:
	if [ ! -h $ETC_DYN_APP_CONF ] && [ -r $PKG_ETC_DYN_APP_CONF ]; 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 [ ! -h "$ETC_DYN_APP_CONF" ] && [ -r "$PKG_ETC_DYN_APP_CONF" ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 460:
		ln -sf $PKG_ETC_DYN_APP_CONF $ETC_DYN_APP_CONF ||
                       ^-------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                             ^---------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		ln -sf "$PKG_ETC_DYN_APP_CONF" "$ETC_DYN_APP_CONF" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 463:
	if [ ! -h $ETC_DYN_PARAM_APP_CONF ] &&
                  ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ ! -h "$ETC_DYN_PARAM_APP_CONF" ] &&


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 464:
	   [ -r $PKG_ETC_DYN_PARAM_APP_CONF ]; then
                ^-------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	   [ -r "$PKG_ETC_DYN_PARAM_APP_CONF" ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 465:
		ln -sf $PKG_ETC_DYN_PARAM_APP_CONF $ETC_DYN_PARAM_APP_CONF ||
                       ^-------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                   ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		ln -sf "$PKG_ETC_DYN_PARAM_APP_CONF" "$ETC_DYN_PARAM_APP_CONF" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 469:
	if [ "$APPTYPE" != lua ] && [ ! -h $DBUS_FILE ]; then
                                           ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ "$APPTYPE" != lua ] && [ ! -h "$DBUS_FILE" ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 470:
		ln -sf $PKG_DBUS_FILE $DBUS_FILE ||
                       ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                      ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		ln -sf "$PKG_DBUS_FILE" "$DBUS_FILE" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 483:
		$PHC readgroupfile $ETC_DYN_PARAM_APP_CONF ||
                                   ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		$PHC readgroupfile "$ETC_DYN_PARAM_APP_CONF" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 504:
			"$CERTSETPROTOCOL" $(id -u $APPUSR) ||
                                           ^--------------^ SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 511:
		local _continue=ok
                ^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 537:
	local line entry type param
        ^-------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 539:
	chmod 755 $ABSAPPNAME || error "Failed to change permissions on $ABSAPPNAME"
                  ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 755 "$ABSAPPNAME" || error "Failed to change permissions on $ABSAPPNAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 554:
	mkdir -p $DATA_DIR || error "Failed to create dir $DATA_DIR"
                 ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	mkdir -p "$DATA_DIR" || error "Failed to create dir $DATA_DIR"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 556:
	chown $APPUSR:$APPGRP $DATA_DIR ||
                              ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chown $APPUSR:$APPGRP "$DATA_DIR" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 562:
	cat <<-EOF > $PKG_ETC_DYN_PARAM_APP_CONF.tmp
                     ^-------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	cat <<-EOF > "$PKG_ETC_DYN_PARAM_APP_CONF".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 570:
	echo "[$GROUPNAME]" > $PKG_ETC_DYN_APP_CONF.tmp
                              ^-------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	echo "[$GROUPNAME]" > "$PKG_ETC_DYN_APP_CONF".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 573:
			entry=$(echo $line | sed -rne 's/^[[:space:]]*([[:alnum:]]*)[[:space:]]*=[[:space:]]*"?([^"]*)"?.*/\1="\2"/p')
                                     ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			entry=$(echo "$line" | sed -rne 's/^[[:space:]]*([[:alnum:]]*)[[:space:]]*=[[:space:]]*"?([^"]*)"?.*/\1="\2"/p')


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 575:
				type=$(echo $line | sed -rne 's/.*type[[:space:]]*=[[:space:]]*"([^"]*)"[[:space:]]*$/\1/p')
                                            ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
				type=$(echo "$line" | sed -rne 's/.*type[[:space:]]*=[[:space:]]*"([^"]*)"[[:space:]]*$/\1/p')


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 578:
				cat <<-EOF >> $PKG_ETC_DYN_PARAM_APP_CONF.tmp
                                              ^-------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
				cat <<-EOF >> "$PKG_ETC_DYN_PARAM_APP_CONF".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 584:
				echo $entry >> $PKG_ETC_DYN_APP_CONF.tmp
                                     ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                               ^-------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
				echo "$entry" >> "$PKG_ETC_DYN_APP_CONF".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 588:
	echo "}" >> $PKG_ETC_DYN_PARAM_APP_CONF.tmp
                    ^-------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	echo "}" >> "$PKG_ETC_DYN_PARAM_APP_CONF".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 590:
	chown $APPUSR:$APPGRP $PKG_ETC_DYN_APP_CONF.tmp ||
                              ^-------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chown $APPUSR:$APPGRP "$PKG_ETC_DYN_APP_CONF".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 593:
	chown $APPUSR:$APPGRP $PKG_ETC_DYN_PARAM_APP_CONF.tmp ||
                              ^-------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chown $APPUSR:$APPGRP "$PKG_ETC_DYN_PARAM_APP_CONF".tmp ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 596:
	fsynced_write_or_cleanup $PKG_ETC_DYN_APP_CONF.tmp $PKG_ETC_DYN_APP_CONF
                                 ^-------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                           ^-------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	fsynced_write_or_cleanup "$PKG_ETC_DYN_APP_CONF".tmp "$PKG_ETC_DYN_APP_CONF"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 597:
	fsynced_write_or_cleanup $PKG_ETC_DYN_PARAM_APP_CONF.tmp $PKG_ETC_DYN_PARAM_APP_CONF
                                 ^-------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                 ^-------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	fsynced_write_or_cleanup "$PKG_ETC_DYN_PARAM_APP_CONF".tmp "$PKG_ETC_DYN_PARAM_APP_CONF"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 599:
	cat <<-EOF > $PKG_DBUS_FILE.tmp
                     ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	cat <<-EOF > "$PKG_DBUS_FILE".tmp


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 620:
	chmod 644 $PKG_DBUS_FILE.tmp || error "Failed to chmod on $PKG_DBUS_FILE.tmp"
                  ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 644 "$PKG_DBUS_FILE".tmp || error "Failed to chmod on $PKG_DBUS_FILE.tmp"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 621:
	fsynced_write_or_cleanup $PKG_DBUS_FILE.tmp $PKG_DBUS_FILE
                                 ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                    ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	fsynced_write_or_cleanup "$PKG_DBUS_FILE".tmp "$PKG_DBUS_FILE"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 626:
	local url_conf_file url_group url_file url_base_file
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 629:
	[ "$1" ] && url_conf_file=$1 || error "Configuration file not specified"
                 ^-- 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-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 630:
	[ "$2" ] && url_file=$2 || error "Failed to read file (file not found)"
                 ^-- 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-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 665:
	local url_conf_file dir files file
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 668:
	[ "$1" ] && url_conf_file=$1 ||
                 ^-- 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-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 670:
	[ "$2" ] && dir=$2 || error "Failed to complete, missing argument dir"
                 ^-- 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-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 672:
	files=$(ls -A $dir)
                      ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	files=$(ls -A "$dir")


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 675:
			add_file_to_url_conf $url_conf_file $dir/$file
                                             ^------------^ 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: 
			add_file_to_url_conf "$url_conf_file" "$dir"/"$file"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 681:
	local acap_name dir dirs subdir url_conf_tmpfile url_conf_file url_dir
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 684:
	[ "$1" ] && acap_name=$1 || error "Failed to complete, missing argument acap_name"
                 ^-- 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-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 685:
	[ "$2" ] && dir=$2 || error "Failed to complete, missing argument dir"
                 ^-- 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-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 689:
	rm -f $url_conf_file 1>/dev/null 2>&
              ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f "$url_conf_file" 1>/dev/null 2>&1


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 690:
	rm -f $url_conf_tmpfile 1>/dev/null 2>&
              ^---------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f "$url_conf_tmpfile" 1>/dev/null 2>&1


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 691:
	dirs=$(find $dir -type d)
                    ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	dirs=$(find "$dir" -type d)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 698:
			url_dir=$ACAP_DOC_ROOT/$acap_name/$(basename $subdir)
                                                                     ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			url_dir=$ACAP_DOC_ROOT/$acap_name/$(basename "$subdir")


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 701:
				$url_conf_tmpfile ||
                                ^---------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
				"$url_conf_tmpfile" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 704:
		gen_url_conf $url_conf_tmpfile $subdir
                             ^---------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                               ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		gen_url_conf "$url_conf_tmpfile" "$subdir"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 706:
		echo "</Directory>" >> $url_conf_tmpfile ||
                                       ^---------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		echo "</Directory>" >> "$url_conf_tmpfile" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 711:
	fsynced_write_or_cleanup $url_conf_tmpfile $url_conf_file
                                 ^---------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                   ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	fsynced_write_or_cleanup "$url_conf_tmpfile" "$url_conf_file"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 715:
	local dir=
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 721:
		[ ! -d "$BAK_DIR" ] || rm -rf $BAK_DIR
                                              ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		[ ! -d "$BAK_DIR" ] || rm -rf "$BAK_DIR"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 724:
	handle_eventdecl -d $INSTALLDIR/$DIRNAME/declarations -n $APPNAME -a ||
                                        ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	handle_eventdecl -d $INSTALLDIR/"$DIRNAME"/declarations -n "$APPNAME" -a ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 727:
	mkdir -p $PKG_CONFDIR || error "Failed to mkdir -p $PKG_CONFDIR"
                 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	mkdir -p "$PKG_CONFDIR" || error "Failed to mkdir -p $PKG_CONFDIR"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 729:
	chmod 755 $PKG_CONFDIR || error "Failed to change permissions on $PKG_CONFDIR"
                  ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 755 "$PKG_CONFDIR" || error "Failed to change permissions on $PKG_CONFDIR"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 732:
		echo ENABLED=no > $RUNSTATE_CONF.tmp || error "Failed to write to $RUNSTATE_CONF.tmp"
                                  ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		echo ENABLED=no > "$RUNSTATE_CONF".tmp || error "Failed to write to $RUNSTATE_CONF.tmp"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 733:
		chmod 644 $RUNSTATE_CONF.tmp || error "Failed to change permissions on $RUNSTATE_CONF.tmp"
                          ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		chmod 644 "$RUNSTATE_CONF".tmp || error "Failed to change permissions on $RUNSTATE_CONF.tmp"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 734:
		fsynced_write_or_cleanup $RUNSTATE_CONF.tmp $RUNSTATE_CONF
                                         ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                            ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		fsynced_write_or_cleanup "$RUNSTATE_CONF".tmp "$RUNSTATE_CONF"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 737:
	chown -Rh $APPUSR:admin $INSTALLDIR/$DIRNAME ||
                                            ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chown -Rh $APPUSR:admin $INSTALLDIR/"$DIRNAME" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 740:
	if [ "$HTTPCGIPATHS" ] || [ "$LICENSENAME" ] && [ ! -d $INSTALLDIR/$DIRNAME/html ]; then
                                                                           ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ "$HTTPCGIPATHS" ] || [ "$LICENSENAME" ] && [ ! -d $INSTALLDIR/"$DIRNAME"/html ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 741:
		mkdir -p $INSTALLDIR/$DIRNAME/html ||
                                     ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		mkdir -p $INSTALLDIR/"$DIRNAME"/html ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 752:
		if __restore_app $INSTALLDIR/$DIRNAME $BAK_DIR; 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 __restore_app $INSTALLDIR/"$DIRNAME" "$BAK_DIR"; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 760:
	chmod 644 $INSTALLDIR/$DIRNAME/$ADPPACKCFG || {
                              ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 644 $INSTALLDIR/"$DIRNAME"/$ADPPACKCFG || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 776:
" $PREUPGRADE_SERVICE $1 $2 $INSTALLDIR $APPNAME > $ETC_SYSTEMD_DIR/$PREUPGRADE_SERVICE_FILENAME
  ^-----------------^ 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.
                                        ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                    ^--------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
" "$PREUPGRADE_SERVICE" "$1" "$2" $INSTALLDIR "$APPNAME" > $ETC_SYSTEMD_DIR/"$PREUPGRADE_SERVICE_FILENAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 781:
	rm $ETC_SYSTEMD_DIR/$PREUPGRADE_SERVICE_FILENAME ||
                            ^--------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm $ETC_SYSTEMD_DIR/"$PREUPGRADE_SERVICE_FILENAME" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 791:
	[ -r $1 ] || {
             ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ -r "$1" ] || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 798:
	create_preupgrade_service $APPUSR $1
                                          ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	create_preupgrade_service $APPUSR "$1"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 800:
	systemctl --quiet start $PREUPGRADE_SERVICE >/dev/null 2>&1 || {
                                ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	systemctl --quiet start "$PREUPGRADE_SERVICE" >/dev/null 2>&1 || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 802:
		systemctl --quiet reset-failed $PREUPGRADE_SERVICE > /dev/null 2>&1 ||
                                               ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		systemctl --quiet reset-failed "$PREUPGRADE_SERVICE" > /dev/null 2>&1 ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 824:
" $POSTINSTALL_SERVICE $1 $execpath $workdir $logpath > $ETC_SYSTEMD_DIR/$POSTINSTALL_SERVICE_FILENAME
  ^------------------^ 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.
                                    ^------^ 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: 
" "$POSTINSTALL_SERVICE" "$1" "$execpath" "$workdir" "$logpath" > $ETC_SYSTEMD_DIR/"$POSTINSTALL_SERVICE_FILENAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 829:
	rm $ETC_SYSTEMD_DIR/$POSTINSTALL_SERVICE_FILENAME ||
                            ^---------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm $ETC_SYSTEMD_DIR/"$POSTINSTALL_SERVICE_FILENAME" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 849:
	systemctl --quiet status $POSTINSTALL_SERVICE >/dev/null 2>&1 || [ $? != 4 ] || {
                                 ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	systemctl --quiet status "$POSTINSTALL_SERVICE" >/dev/null 2>&1 || [ $? != 4 ] || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 853:
	systemctl --quiet start $POSTINSTALL_SERVICE >/dev/null 2>&1 || {
                                ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	systemctl --quiet start "$POSTINSTALL_SERVICE" >/dev/null 2>&1 || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 855:
		systemctl --quiet reset-failed $POSTINSTALL_SERVICE > /dev/null 2>&1 ||
                                               ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		systemctl --quiet reset-failed "$POSTINSTALL_SERVICE" > /dev/null 2>&1 ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 860:
	chmod 644 $INSTALLDIR/$DIRNAME/$ADPPACKCFG || {
                              ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	chmod 644 $INSTALLDIR/"$DIRNAME"/$ADPPACKCFG || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 867:
	rm -f $ETC_TRANSFER_CONF/transfer_$APPNAME.conf
                                          ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f $ETC_TRANSFER_CONF/transfer_"$APPNAME".conf


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 868:
	rm -f $ETC_TRANSFER_CONF/legacy_transfer_$APPNAME.conf
                                                 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f $ETC_TRANSFER_CONF/legacy_transfer_"$APPNAME".conf


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 869:
	rm -f $ETC_MIME_CONF/legacy_mime_$APPNAME.conf
                                         ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f $ETC_MIME_CONF/legacy_mime_"$APPNAME".conf


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 870:
	rm -rf $HTTP_VAR_RUN/$APPNAME
               ^--------------------^ SC2115 (warning): Use "${var:?}" to ensure this never expands to / .
                             ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -rf $HTTP_VAR_RUN/"$APPNAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 872:
	rm -f $ETC_DYN_PARAM_APP_CONF
              ^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f "$ETC_DYN_PARAM_APP_CONF"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 873:
	rm -f $ETC_DYN_APP_CONF
              ^---------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f "$ETC_DYN_APP_CONF"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 874:
	$PHC deletegroup $GROUPNAME >/dev/null 2>&1 || :
                         ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	$PHC deletegroup "$GROUPNAME" >/dev/null 2>&1 || :


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 878:
 rm -rf $INSTALLDIR/$DIRNAME
        ^------------------^ SC2115 (warning): Use "${var:?}" to ensure this never expands to / .
                    ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 rm -rf $INSTALLDIR/"$DIRNAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 883:
	local enb=no var= val= IFS==
        ^------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                         ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                              ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                                   ^-- SC1097 (error): Unexpected ==. For assignment, use =. For comparison, use [/[[. Or quote for literal string.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 885:
	if [ -r $RUNSTATE_CONF ]; then
                ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if [ -r "$RUNSTATE_CONF" ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 886:
		while read var val; do
                      ^--^ SC2162 (info): read without -r will mangle backslashes.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 889:
					eval enb=$val
                                                 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
					eval enb="$val"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 892:
					$log_info "unknown runstate $var for $APPNAME"
                                        ^-------^ SC2154 (warning): log_info is referenced but not assigned.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 895:
		done < $RUNSTATE_CONF
                       ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		done < "$RUNSTATE_CONF"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 904:
	[ -r $ETC_SYSTEMD_APPNAME ] || return 0
             ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ -r "$ETC_SYSTEMD_APPNAME" ] || return 0


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 907:
	if [ $STARTMODE != never ] && [ $enabled = yes ]; 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 [ "$STARTMODE" != never ] && [ "$enabled" = yes ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 908:
		systemctl --quiet enable $SYSTEMD_SERVICE_FILENAME  >/dev/null 2>&1 ||
                                         ^-----------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		systemctl --quiet enable "$SYSTEMD_SERVICE_FILENAME"  >/dev/null 2>&1 ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 911:
	if [ $STARTMODE = never ] && [ $enabled = yes ]; 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 [ "$STARTMODE" = never ] && [ "$enabled" = yes ]; then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 912:
		echo ENABLED=no >$RUNSTATE_CONF ||
                                 ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		echo ENABLED=no >"$RUNSTATE_CONF" ||


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 918:
	local runlevel
        ^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
              ^------^ SC2034 (warning): runlevel appears unused. Verify use (or export if used externally).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 922:
	handle_eventdecl -d $INSTALLDIR/$DIRNAME/declarations -n $APPNAME -r
                                        ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                                                 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	handle_eventdecl -d $INSTALLDIR/"$DIRNAME"/declarations -n "$APPNAME" -r


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 924:
	rm -rf $WEB_DIR/$APPNAME
               ^---------------^ SC2115 (warning): Use "${var:?}" to ensure this never expands to / .
                        ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -rf $WEB_DIR/"$APPNAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 927:
		rm -f $ETC_INIT_D_APPNAME
                      ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		rm -f "$ETC_INIT_D_APPNAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 929:
	rm -f $ETC_SYSTEMD_APPNAME
              ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f "$ETC_SYSTEMD_APPNAME"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 930:
	rm -rf $ETC_SYSTEMD_APPDIR
               ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -rf "$ETC_SYSTEMD_APPDIR"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 931:
	rm -f $DBUS_FILE
              ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	rm -f "$DBUS_FILE"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh line 948:
		run_pre_upgrade $2
                                ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		run_pre_upgrade "$2"

For more information:
  https://www.shellcheck.net/wiki/SC1087 -- Use braces when expanding arrays,...
  https://www.shellcheck.net/wiki/SC1097 -- Unexpected ==. For assignment, us...
  https://www.shellcheck.net/wiki/SC1007 -- Remove space after = if trying to...