zzz: Fix output formatting when suspend state not supported

Reviewed by: imp (who also simplified things a little)
Differenetial Revision: https://reviews.freebsd.org/D45299
This commit is contained in:
Oleksandr Kryvulia 2024-05-22 14:21:18 -06:00 committed by Warner Losh
parent 56b2742130
commit 6841c2677c
1 changed files with 2 additions and 3 deletions

View File

@ -27,9 +27,8 @@ if sysctl $ACPI_SUSPEND_STATE >/dev/null 2>&1; then
# execute ACPI style suspend command
exec acpiconf -s "$SUSPEND_STATE"
else
echo -n "Requested suspend state $SUSPEND_STATE "
echo -n "is not supported."
echo "Supported states: $SUPPORTED_STATES"
echo "Requested suspend state $SUSPEND_STATE is not supported."
echo "Supported states: $SUPPORTED_STATES"
fi
# Check for APM support
elif sysctl $APM_SUSPEND_DELAY >/dev/null 2>&1; then