blob: 59b08ec03722cb45347bc779247f5335de73a6bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env dash
# TODO(@bpeetz): This functionality could be moved to `tskm`. <2025-04-14>
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
|