mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
9 lines
163 B
Bash
9 lines
163 B
Bash
#!/bin/sh
|
|
|
|
if command -v zzz >/dev/null; then
|
|
zzz "$@"
|
|
elif loginctl suspend --dry-run 2>/dev/null; then
|
|
loginctl suspend
|
|
else
|
|
echo 'mem' > /sys/power/state
|
|
fi
|