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
Anton Palgunov
mkimage-profiles
Commits
f43d68ce
Commit
f43d68ce
authored
Sep 09, 2013
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
power: employ services feature
rootfs got handy either though managing modules to preload might be enhanced further.
parent
93371601
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
config.mk
features.in/power/config.mk
+5
-2
50-power
features.in/power/rootfs/image-scripts.d/50-power
+6
-0
No files found.
features.in/power/config.mk
View file @
f43d68ce
+power: use/power/acpi/button use/power/acpi/cpufreq; @:
# common
# TODO: invent multi-target scripts and integrate that 08-powerbutton
use/power:
use/power: sub/rootfs use/services
@$(call add_feature)
@$(call add,COMMON_PACKAGES,installer-feature-powerbutton-stage3)
# modern power management
use/power/acpi: use/power
@$(call add,COMMON_PACKAGES,acpid acpi)
@$(call add,DEFAULT_SERVICES_ENABLE,acpid)
use/power/acpi/button: use/power/acpi
@$(call add,COMMON_PACKAGES,acpid-events-power)
...
...
@@ -18,7 +18,10 @@ use/power/acpi/cpufreq: use/power/acpi
use/power/acpi/powersave: use/power/acpi
@$(call add,COMMON_PACKAGES,powersave)
@$(call add,DEFAULT_SERVICES_DISABLE,acpid) # override
@$(call add,DEFAULT_SERVICES_ENABLE,powersaved)
# legacy power management
use/power/apm: use/power
@$(call add,COMMON_PACKAGES,apmd lphdisk)
@$(call add,DEFAULT_SERVICES_ENABLE,apmd)
features.in/power/rootfs/image-scripts.d/50-power
0 → 100755
View file @
f43d68ce
#!/bin/sh -efu
# provide kernel interface for ACPI power button
if
[
-x
/etc/init.d/acpid
]
;
then
grep
-qsx
button /etc/modules
||
echo
button
>>
/etc/modules
fi
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