Skip to content

Instantly share code, notes, and snippets.

@vasi
Created April 4, 2024 08:19
Show Gist options
  • Save vasi/a3d2975d528ace286817b250c460733b to your computer and use it in GitHub Desktop.
Save vasi/a3d2975d528ace286817b250c460733b to your computer and use it in GitHub Desktop.
FreeBSD intel-undervolt rc script
#!/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