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:
parent
56b2742130
commit
6841c2677c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue