blob: 30868fd138bf268c290e4bb6e00bde28e34329cc (
plain) (
tree)
|
|
#!/usr/bin/env dash
# shellcheck source=/dev/null
SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH
context="$(task _get rc.context)"
[ "$context" ] && task context none
# We have ensured that only one task is active
active="$(task +ACTIVE _ids)"
[ "$active" ] && task stop "$active"
systemctl hibernate "$@"
# vim: ft=sh
|