Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
482e11ab
Commit
482e11ab
authored
Feb 15, 2019
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no-sleep: initial feature
This feature disabled suspend, sleep, hibernation mode.
parent
c310a1e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
README
features.in/no-sleep/README
+3
-0
config.mk
features.in/no-sleep/config.mk
+2
-0
50-no-sleep-systemd
...es.in/no-sleep/rootfs/image-scripts.d/50-no-sleep-systemd
+13
-0
No files found.
features.in/no-sleep/README
0 → 100644
View file @
482e11ab
Эта фича отключает спящий и ждущий режимы, а также гибернацию.
Нужна для одноплатных компьютеров вроде Raspberry Pi,
не поддерживающих их.
features.in/no-sleep/config.mk
0 → 100644
View file @
482e11ab
use/no-sleep:
@$(call add_feature)
features.in/no-sleep/rootfs/image-scripts.d/50-no-sleep-systemd
0 → 100755
View file @
482e11ab
#!/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
$?
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment