Changeset View
Changeset View
Standalone View
Standalone View
etc/rc.d/power_profile
Show All 9 Lines | |||||
# PROVIDE: power_profile | # PROVIDE: power_profile | ||||
# REQUIRE: FILESYSTEMS syslogd | # REQUIRE: FILESYSTEMS syslogd | ||||
# KEYWORD: nojail nostart | # KEYWORD: nojail nostart | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="power_profile" | name="power_profile" | ||||
desc="Modify the power profile based on AC line state" | |||||
stop_cmd=':' | stop_cmd=':' | ||||
LOGGER="logger -t power_profile -p daemon.notice" | LOGGER="logger -t power_profile -p daemon.notice" | ||||
# Set a given sysctl node to a value. | # Set a given sysctl node to a value. | ||||
# | # | ||||
# Variables: | # Variables: | ||||
# $node: sysctl node to set with the new value | # $node: sysctl node to set with the new value | ||||
# $value: HIGH for the highest performance value, LOW for the best | # $value: HIGH for the highest performance value, LOW for the best | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |