In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-restore line 5:
. /usr/lib/addon-common
^-------------------^ SC1091 (info): Not following: /usr/lib/addon-common 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/bin/addon-restore line 13:
local IFS
^-------^ 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/bin/addon-restore line 21:
if [ $name = axis-liveprivacyshield ] && [ $ver -le 1020 ]; 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 [ "$name" = axis-liveprivacyshield ] && [ "$ver" -le 1020 ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-restore line 31:
local addondir=/opt signed sign_status first_boot_mode=1
^-- 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/bin/addon-restore line 36:
sign_status=$(addon-info -s -i $a)
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
sign_status=$(addon-info -s -i "$a")
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-restore line 37:
[ ${sign_status##*[[:blank:]]} = signed ] && signed=1 || signed=0
^--------------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "${sign_status##*[[:blank:]]}" = signed ] && signed=1 || signed=0
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-restore line 38:
if addon-setup $a $signed $first_boot_mode; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if addon-setup "$a" $signed $first_boot_mode; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-restore line 40:
restore_running_state $a $AUTOSTART_CONF_FILE> /dev/null 2>&1 ||
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
restore_running_state "$a" $AUTOSTART_CONF_FILE> /dev/null 2>&1 ||
For more information:
https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.
https://www.shellcheck.net/wiki/SC1091 -- Not following: /usr/lib/addon-com...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...