blob: f4ede2a5037c9b5c5fccbd9d078cc25013861353 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env dash
# shellcheck source=/dev/null
SHELL_LIBRARY_VERSION="2.0.12" . %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
|