In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 3:
. /usr/html/axis-cgi/lib/sh-helpers.sh
^-- SC1091 (info): Not following: /usr/html/axis-cgi/lib/sh-helpers.sh was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 4:
. /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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 22:
local value
^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 24:
[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] ||
^-- 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/bin/poe_status.sh line 27:
value=$($GDBUS_POWERD_PROP_GET $2 2>&1) ||
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
value=$($GDBUS_POWERD_PROP_GET "$2" 2>&1) ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 36:
eval $1=\$value
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$1"=\$value
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 43:
[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] ||
^-- 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/bin/poe_status.sh line 60:
if [ $2 -ge $((0x11)) ] && [ $2 -le $((0x18)) ]; 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 [ "$2" -ge $((0x11)) ] && [ "$2" -le $((0x18)) ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 63:
elif [ $2 -ge $((0x21)) ] && [ $2 -le $((0x25)) ]; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
elif [ "$2" -ge $((0x21)) ] && [ "$2" -le $((0x25)) ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 76:
local power_pfx status
^--------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 78:
[ $# -eq 1 ] && [ "$1" ] ||
^-- 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/bin/poe_status.sh line 111:
local string delim
^----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 113:
[ $# -eq 1 ] && [ "$1" ] ||
^-- 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/bin/poe_status.sh line 143:
echo "${string%%$delim*}"
^----^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
echo "${string%%"$delim"*}"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 145:
string=${string#*$delim}
^----^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
string=${string#*"$delim"}
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 153:
local info name description
^-------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 155:
info=$($GDBUS_GLLDPD_METHOD.GetNeighbourInfo 2>&1) ||
^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
info=$("$GDBUS_GLLDPD_METHOD".GetNeighbourInfo 2>&1) ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 175:
local prio_pfx
^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 177:
[ $# -eq 1 ] && [ "$1" ] ||
^-- 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/bin/poe_status.sh line 202:
local info prio requested
^-----------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 204:
info=$($GDBUS_GLLDPD_METHOD.GetPoeInfo 2>&1) ||
^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
info=$("$GDBUS_GLLDPD_METHOD".GetPoeInfo 2>&1) ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 214:
printf " -Software Power Requested: %d.%d Watt\n" $(($requested/10)) $(($requested%10))
^--------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
^--------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 221:
print_prio_string $prio
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
print_prio_string "$prio"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 226:
local neg_type power failure_time
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 228:
while read neg_type power failure_time; do
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 233:
echo " Negotiation Type: $neg_type, Power Received: $power," "Time: $failure_time"
^-- SC2291 (info): Quote repeated spaces to avoid them collapsing into one.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 239:
local info current_power min_power max_power average_power
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 242:
info=$($GDBUS_POWERD_METHOD.TotalPowerConsumption 2>&1) || {
^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
info=$("$GDBUS_POWERD_METHOD".TotalPowerConsumption 2>&1) || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 256:
local IFS=,
^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 257:
set -- $info
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
set -- "$info"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 258:
[ $# -eq 4 ] && [ "$1" ] && [ "$2" ] && [ "$3" ] && [ "$4" ] ||
^-- 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/bin/poe_status.sh line 263:
current_power=$(printf "%.1f" $current_power)
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
current_power=$(printf "%.1f" "$current_power")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 266:
min_power=$(printf "%.1f" $2)
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
min_power=$(printf "%.1f" "$2")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 269:
max_power=$(printf "%.1f" $3)
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
max_power=$(printf "%.1f" "$3")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 274:
average_power=$(printf "%.1f" $average_power)
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
average_power=$(printf "%.1f" "$average_power")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 293:
[ $# -eq 1 ] && [ "$1" ] ||
^-- 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/bin/poe_status.sh line 304:
printf "\nDevice: $1\n"
^--------------^ SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 312:
local info name current_power min_power max_power average_power
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 314:
[ $# -eq 1 ] && [ "$1" ] ||
^-- 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/bin/poe_status.sh line 318:
info=$($GDBUS_POWERD_METHOD.DevicePower $1 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:
info=$("$GDBUS_POWERD_METHOD".DevicePower "$1" 2>&1) ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 323:
local IFS=,
^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 324:
set -- $info
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
set -- "$info"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 325:
[ $# -eq 5 ] && [ "$1" ] && [ "$2" ] && [ "$3" ] && [ "$4" ] && [ "$5" ] ||
^-- 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/bin/poe_status.sh line 333:
current_power=$(printf "%.1f" $2)
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
current_power=$(printf "%.1f" "$2")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 336:
min_power=$(printf "%.1f" $3)
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
min_power=$(printf "%.1f" "$3")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 339:
max_power=$(printf "%.1f" $4)
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
max_power=$(printf "%.1f" "$4")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 344:
average_power=$(printf "%.1f" $average_power)
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
average_power=$(printf "%.1f" "$average_power")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 348:
print_pretty_name $name
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
print_pretty_name "$name"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 357:
local info support mode
^---------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 359:
info=$($GDBUS_POWERSAVE_METHOD.GetPowerSavingSupport 2>&1) ||
^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
info=$("$GDBUS_POWERSAVE_METHOD".GetPowerSavingSupport 2>&1) ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 367:
[ $support != true ] || {
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$support" != true ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 368:
info=$($GDBUS_POWERSAVE_METHOD.GetPowerSavingMode 2>&1) ||
^---------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
info=$("$GDBUS_POWERSAVE_METHOD".GetPowerSavingMode 2>&1) ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 380:
local return_value failed_negotiations number_of_devices lldp_info
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 390:
[ $return_value -eq -1 ] || {
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$return_value" -eq -1 ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 391:
print_poeclass_string "Hardware:" $return_value
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
print_poeclass_string "Hardware:" "$return_value"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 395:
print_poeclass_string "Software:" $return_value
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
print_poeclass_string "Software:" "$return_value"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 399:
[ $return_value -lt 3 ] || {
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$return_value" -lt 3 ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 408:
print_power_status $return_value
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
print_power_status "$return_value"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 412:
printf "Power Requested: %.1f Watt\n" $return_value
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "Power Requested: %.1f Watt\n" "$return_value"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 416:
printf "Power Received: %.1f Watt\n" $return_value
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "Power Received: %.1f Watt\n" "$return_value"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 423:
[ $failed_negotiations -le 0 ] || print_failure_info
^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$failed_negotiations" -le 0 ] || print_failure_info
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 435:
[ $number_of_devices -le 0 ] || {
^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$number_of_devices" -le 0 ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 436:
local device_index=0
^----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 439:
while [ $device_index -lt $number_of_devices ]; do
^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
while [ $device_index -lt "$number_of_devices" ]; do
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 442:
device_index=$(($device_index + 1))
^-----------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 450:
local hw_poe_script=/usr/libexec/poe-detect
^-----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 451:
local sw_poe_script=/usr/libexec/poe-plus-setup
^-----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 452:
local pse_type_file=/run/poe/pse_type
^-----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 453:
local poet_executable=/usr/bin/poet
^-------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 454:
local poe_class pse_type poe_output
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^------^ SC2034 (warning): pse_type appears unused. Verify use (or export if used externally).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 465:
read poe_class <$pse_type_file.hw
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 467:
read poe_class <$pse_type_file
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 473:
poe_output="$hw_poe was empty"
^-----^ SC2154 (warning): hw_poe is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh line 481:
read poe_class <$pse_type_file
^--^ SC2162 (info): read without -r will mangle backslashes.
For more information:
https://www.shellcheck.net/wiki/SC2034 -- pse_type appears unused. Verify u...
https://www.shellcheck.net/wiki/SC2154 -- hw_poe is referenced but not assi...
https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.