summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2009-05-02 12:54:14 +0000
committerRaúl Porcel <armin76@gentoo.org>2009-05-02 12:54:14 +0000
commitdfc50a0fa5447a74287c29cca2b19dc4bcbbaea1 (patch)
tree7ea97c203f260d4378092cf0635e34595b9e31d0 /sys-apps/microcode-ctl/files
parentVersion bump wrt #264498, fix installdir wrt #233141 remove old (diff)
downloadgentoo-2-dfc50a0fa5447a74287c29cca2b19dc4bcbbaea1.tar.gz
gentoo-2-dfc50a0fa5447a74287c29cca2b19dc4bcbbaea1.tar.bz2
gentoo-2-dfc50a0fa5447a74287c29cca2b19dc4bcbbaea1.zip
Revbump to include new location of microcode.dat file, bug #233141
(Portage version: 2.1.6.11/cvs/Linux ia64)
Diffstat (limited to 'sys-apps/microcode-ctl/files')
-rw-r--r--sys-apps/microcode-ctl/files/microcode_ctl.rc-r125
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-apps/microcode-ctl/files/microcode_ctl.rc-r1 b/sys-apps/microcode-ctl/files/microcode_ctl.rc-r1
new file mode 100644
index 000000000000..d2a09692a82a
--- /dev/null
+++ b/sys-apps/microcode-ctl/files/microcode_ctl.rc-r1
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $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 $
+
+depend() {
+ need localmount
+}
+
+start() {
+ local ret
+
+ # Make sure the kernel supports the microcode device ...
+ # if it doesnt, try to modprobe the kernel module
+ grep -qs ' microcode$' /proc/misc || modprobe -q microcode
+
+ ebegin "Updating microcode"
+ microcode_ctl -qu -f /lib/firmware/microcode.dat -d ${MICROCODE_DEV}
+ ret=$?
+ eend ${ret} "Failed to update microcode via '${MICROCODE_DEV}'"
+
+ [ "${MICROCODE_UNLOAD}" = "yes" ] && rmmod microcode >/dev/null 2>&1
+
+ return ${ret}
+}