mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-21 18:50:50 +01:00
devd: Move power_profile part in devd/power_profile.conf
And make it part of the FreeBSD-acpi package. This avoid calling service power_profile on an installation without it installed. Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D38324
This commit is contained in:
parent
9150a0455e
commit
2878e21ff1
@ -17,6 +17,11 @@ DHCLIENTDIR= ${DEVDDIR}
|
||||
DHCLIENT+= dhclient.conf
|
||||
DHCLIENTPACKAGE= dhclient
|
||||
|
||||
CONFGROUPS+= POWERPROFILE
|
||||
POWERPROFILEDIR= ${DEVDDIR}
|
||||
POWERPROFILE+= power_profile.conf
|
||||
POWERPROFILEPACKAGE= acpi
|
||||
|
||||
.if ${MK_BLUETOOTH} != "no"
|
||||
CONFGROUPS+= BLUETOOTH
|
||||
BLUETOOTHDIR= ${DEVDDIR}
|
||||
|
@ -145,13 +145,6 @@ nomatch 10 {
|
||||
vendor $vendor bus $bus";
|
||||
};
|
||||
|
||||
# Switch power profiles when the AC line state changes.
|
||||
notify 10 {
|
||||
match "system" "ACPI";
|
||||
match "subsystem" "ACAD";
|
||||
action "service power_profile $notify";
|
||||
};
|
||||
|
||||
# Notify all users before beginning emergency shutdown when we get
|
||||
# a _CRT or _HOT thermal event and we're going to power down the system
|
||||
# very soon.
|
||||
|
6
sbin/devd/power_profile.conf
Normal file
6
sbin/devd/power_profile.conf
Normal file
@ -0,0 +1,6 @@
|
||||
# Switch power profiles when the AC line state changes.
|
||||
notify 10 {
|
||||
match "system" "ACPI";
|
||||
match "subsystem" "ACAD";
|
||||
action "service power_profile $notify";
|
||||
};
|
Loading…
Reference in New Issue
Block a user