Created
April 4, 2024 08:19
-
-
Save vasi/a3d2975d528ace286817b250c460733b to your computer and use it in GitHub Desktop.
FreeBSD intel-undervolt rc script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# PROVIDE: intel_undervolt | |
# REQUIRE: DAEMON | |
# KEYWORD: nojail | |
. /etc/rc.subr | |
name="intel_undervolt" | |
rcvar="intel_undervolt_enable" | |
command="/usr/sbin/daemon" | |
pidfile="/var/run/${name}.pid" | |
command_args="-c -f -P ${pidfile} -r /usr/local/bin/intel-undervolt daemon" | |
load_rc_config $name | |
run_rc_command "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment