Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/microcode-ctl/files: microcode_ctl.rc-r1
Date: Sat, 02 May 2009 12:54:16
Message-Id: E1M0EjP-0003tw-0J@stork.gentoo.org
1 armin76 09/05/02 12:54:15
2
3 Added: microcode_ctl.rc-r1
4 Log:
5 Revbump to include new location of microcode.dat file, bug #233141
6 (Portage version: 2.1.6.11/cvs/Linux ia64)
7
8 Revision Changes Path
9 1.1 sys-apps/microcode-ctl/files/microcode_ctl.rc-r1
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc-r1?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc-r1?rev=1.1&content-type=text/plain
13
14 Index: microcode_ctl.rc-r1
15 ===================================================================
16 #!/sbin/runscript
17 # Copyright 1999-2008 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License, v2 or later
19 # $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc-r1,v 1.1 2009/05/02 12:54:14 armin76 Exp $
20
21 depend() {
22 need localmount
23 }
24
25 start() {
26 local ret
27
28 # Make sure the kernel supports the microcode device ...
29 # if it doesnt, try to modprobe the kernel module
30 grep -qs ' microcode$' /proc/misc || modprobe -q microcode
31
32 ebegin "Updating microcode"
33 microcode_ctl -qu -f /lib/firmware/microcode.dat -d ${MICROCODE_DEV}
34 ret=$?
35 eend ${ret} "Failed to update microcode via '${MICROCODE_DEV}'"
36
37 [ "${MICROCODE_UNLOAD}" = "yes" ] && rmmod microcode >/dev/null 2>&1
38
39 return ${ret}
40 }