mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Avoid to suspend server if we close lidswitch
This commit is contained in:
parent
8cf9257683
commit
40df98e8f2
1 changed files with 10 additions and 0 deletions
|
@ -135,6 +135,16 @@ Conflicts=yunohost-firewall.service
|
||||||
ConditionFileIsExecutable=!/etc/init.d/yunohost-firewall
|
ConditionFileIsExecutable=!/etc/init.d/yunohost-firewall
|
||||||
ConditionPathExists=!/etc/systemd/system/multi-user.target.wants/yunohost-firewall.service
|
ConditionPathExists=!/etc/systemd/system/multi-user.target.wants/yunohost-firewall.service
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Don't suspend computer on LidSwitch
|
||||||
|
mkdir -p ${pending_dir}/etc/systemd/logind.conf.d/
|
||||||
|
cat > ${pending_dir}/etc/systemd/logind.conf.d/yunohost.conf << EOF
|
||||||
|
[Login]
|
||||||
|
HandleLidSwitch=ignore
|
||||||
|
HandleLidSwitchDocked=ignore
|
||||||
|
HandleLidSwitchExternalPower=ignore
|
||||||
|
EOF
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_post_regen() {
|
do_post_regen() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue