Commit 482e11ab authored by Anton Midyukov's avatar Anton Midyukov

no-sleep: initial feature

This feature disabled suspend, sleep, hibernation mode.
parent c310a1e9
Эта фича отключает спящий и ждущий режимы, а также гибернацию.
Нужна для одноплатных компьютеров вроде Raspberry Pi,
не поддерживающих их.
use/no-sleep:
@$(call add_feature)
#!/bin/sh -efu
sleepconf=/etc/systemd/sleep.conf
test ! -f "$sleepconf" && exit || :
cat >> "$sleepconf" <<EOF
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
EOF
exit $?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment