Skip to content

Commit

Permalink
sysutils/devcpu-data: Fix typo in rc script
Browse files Browse the repository at this point in the history
The microcode_update rc script spells "required_modules" as
"requires_modules", masking this by duplicating the missing
functionality in its own precmd.

This patch fixes the typo and removes the superfluous precmd.

PR:		272781
Approved by:	sbruno (maintainer)
  • Loading branch information
Freaky authored and rbgarga committed Jul 31, 2023
1 parent f326e23 commit 18bc11a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions sysutils/devcpu-data/Makefile
@@ -1,5 +1,6 @@
PORTNAME= data
PORTVERSION= 20230617
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= # none
PKGNAMEPREFIX= devcpu-
Expand Down
13 changes: 1 addition & 12 deletions sysutils/devcpu-data/files/microcode_update.in
Expand Up @@ -21,22 +21,11 @@
name="microcode_update"
rcvar=microcode_update_enable
stop_cmd=":"
start_precmd="microcode_update_prepare"
start_cmd="microcode_update_start"
requires_modules="cpuctl"
required_modules="cpuctl"

CMT="/usr/sbin/cpucontrol"

microcode_update_prepare()
{
if ! kldstat -q -m cpuctl; then
if ! kldload cpuctl > /dev/null 2>&1; then
warn "Can't load cpuctl module."
return 1
fi
fi
}

microcode_update_start()
{
echo "Updating CPU Microcode..."
Expand Down

0 comments on commit 18bc11a

Please sign in to comment.