diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-01-08 01:17:49 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-01-08 01:17:49 +0000 |
commit | 915ec09ae228bd6461a1ba21cbfc5e24723b7b18 (patch) | |
tree | ca449b142778f9b1f87f0dd6ec50d38a1f492342 /sys-apps/microcode-ctl/files | |
parent | mask gramadoir ready for removal (users who want it can use g-cpan). (diff) | |
download | gentoo-2-915ec09ae228bd6461a1ba21cbfc5e24723b7b18.tar.gz gentoo-2-915ec09ae228bd6461a1ba21cbfc5e24723b7b18.tar.bz2 gentoo-2-915ec09ae228bd6461a1ba21cbfc5e24723b7b18.zip |
modprobe the microcode module if it doesnt exist
Diffstat (limited to 'sys-apps/microcode-ctl/files')
-rw-r--r-- | sys-apps/microcode-ctl/files/digest-microcode-ctl-1.10 | 1 | ||||
-rw-r--r-- | sys-apps/microcode-ctl/files/microcode_ctl.conf.d | 6 | ||||
-rw-r--r-- | sys-apps/microcode-ctl/files/microcode_ctl.rc | 8 |
3 files changed, 9 insertions, 6 deletions
diff --git a/sys-apps/microcode-ctl/files/digest-microcode-ctl-1.10 b/sys-apps/microcode-ctl/files/digest-microcode-ctl-1.10 deleted file mode 100644 index 24f62bbed327..000000000000 --- a/sys-apps/microcode-ctl/files/digest-microcode-ctl-1.10 +++ /dev/null @@ -1 +0,0 @@ -MD5 ff8be753e5d5d7275495b7c99bdd55f3 microcode_ctl-1.10.tar.gz 199396 diff --git a/sys-apps/microcode-ctl/files/microcode_ctl.conf.d b/sys-apps/microcode-ctl/files/microcode_ctl.conf.d index d127de8c0d92..9e3e7c6cf6d5 100644 --- a/sys-apps/microcode-ctl/files/microcode_ctl.conf.d +++ b/sys-apps/microcode-ctl/files/microcode_ctl.conf.d @@ -1,5 +1,5 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.conf.d,v 1.2 2004/09/01 22:04:20 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.conf.d,v 1.3 2005/01/08 01:17:49 vapier Exp $ -MICROCODE_DEV="/dev/microcode" +MICROCODE_DEV="/dev/cpu/microcode" diff --git a/sys-apps/microcode-ctl/files/microcode_ctl.rc b/sys-apps/microcode-ctl/files/microcode_ctl.rc index a0b4b3aaddb7..fe60aa9995ff 100644 --- a/sys-apps/microcode-ctl/files/microcode_ctl.rc +++ b/sys-apps/microcode-ctl/files/microcode_ctl.rc @@ -1,13 +1,17 @@ #!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 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,v 1.2 2004/11/14 06:47:21 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc,v 1.3 2005/01/08 01:17:49 vapier Exp $ depend() { need localmount } start() { + # Make sure the kernel supports the microcode device ... + # if it doesnt, try to modprobe the kernel module + grep -qo ' microcode$' /proc/misc || modprobe microcode >& /dev/null + ebegin "Updating microcode" /usr/sbin/microcode_ctl -qu -d ${MICROCODE_DEV} eend $? "Failed to update microcode via '${MICROCODE_DEV}'" |