tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Silent stop for intel-microcode-netbsd
Hi tech-pkg@,
intel-microcode-netbsd does not contain a daemon, it simply calls
cpuctl(8) to upload the microcode to the CPU. However the RC script only
handles the starting sequence. Therefore I would like to commit the
change attached, which avoids an irrelevant message upon reboot, and
avoids a meaningless error condition.
Before:
# /etc/rc.d/intel-microcode stop; echo $?
microcode not running?
1
After:
# /etc/rc.d/intel-microcode stop; echo $?
0
OK to commit?
Cheers & HTH,
--
khorben
? .Makefile.swp
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/intel-microcode-netbsd/Makefile,v
retrieving revision 1.41
diff -p -u -r1.41 Makefile
--- Makefile 20 Jul 2020 21:18:17 -0000 1.41
+++ Makefile 20 Jul 2020 21:19:08 -0000
@@ -3,6 +3,7 @@
VERSION= 20200616
DISTNAME= microcode-${VERSION}
PKGNAME= intel-microcode-netbsd-${VERSION}
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=intel/}
GITHUB_PROJECT= Intel-Linux-Processor-Microcode-Data-Files
Index: files/intel-microcode.sh
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/intel-microcode-netbsd/files/intel-microcode.sh,v
retrieving revision 1.1
diff -p -u -r1.1 intel-microcode.sh
--- files/intel-microcode.sh 29 Aug 2012 17:17:24 -0000 1.1
+++ files/intel-microcode.sh 20 Jul 2020 21:19:08 -0000
@@ -11,6 +11,7 @@ $_rc_subr_loaded . /etc/rc.subr
name=microcode
rcvar=$name
start_cmd="microcode_start"
+stop_cmd=":"
_microcode_baremetal()
{
Home |
Main Index |
Thread Index |
Old Index