1 |
vapier 08/05/05 04:05:58 |
2 |
|
3 |
Modified: microcode_ctl.rc |
4 |
Log: |
5 |
Convert init.d script to POSIX #219751 by yuen and split off microcode-data #194271 by Mike Nerone. |
6 |
(Portage version: 2.2_pre5) |
7 |
|
8 |
Revision Changes Path |
9 |
1.5 sys-apps/microcode-ctl/files/microcode_ctl.rc |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc?rev=1.5&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc?rev=1.5&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc?r1=1.4&r2=1.5 |
14 |
|
15 |
Index: microcode_ctl.rc |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc,v |
18 |
retrieving revision 1.4 |
19 |
retrieving revision 1.5 |
20 |
diff -u -r1.4 -r1.5 |
21 |
--- microcode_ctl.rc 26 Dec 2005 21:01:37 -0000 1.4 |
22 |
+++ microcode_ctl.rc 5 May 2008 04:05:58 -0000 1.5 |
23 |
@@ -1,7 +1,7 @@ |
24 |
#!/sbin/runscript |
25 |
-# Copyright 1999-2005 Gentoo Foundation |
26 |
+# Copyright 1999-2008 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License, v2 or later |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc,v 1.4 2005/12/26 21:01:37 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-ctl/files/microcode_ctl.rc,v 1.5 2008/05/05 04:05:58 vapier Exp $ |
30 |
|
31 |
depend() { |
32 |
need localmount |
33 |
@@ -12,15 +12,14 @@ |
34 |
|
35 |
# Make sure the kernel supports the microcode device ... |
36 |
# if it doesnt, try to modprobe the kernel module |
37 |
- grep -qo ' microcode$' /proc/misc || modprobe microcode >& /dev/null |
38 |
+ grep -qs ' microcode$' /proc/misc || modprobe -q microcode |
39 |
|
40 |
ebegin "Updating microcode" |
41 |
- /usr/sbin/microcode_ctl -qu -d ${MICROCODE_DEV} |
42 |
+ microcode_ctl -qu -d ${MICROCODE_DEV} |
43 |
ret=$? |
44 |
eend ${ret} "Failed to update microcode via '${MICROCODE_DEV}'" |
45 |
|
46 |
- [[ ${MICROCODE_UNLOAD} == "1" || ${MICROCODE_UNLOAD} == "yes" ]] \ |
47 |
- && rmmod microcode >& /dev/null |
48 |
+ [ "${MICROCODE_UNLOAD}" = "yes" ] && rmmod microcode >/dev/null 2>&1 |
49 |
|
50 |
return ${ret} |
51 |
} |
52 |
|
53 |
|
54 |
|
55 |
-- |
56 |
gentoo-commits@l.g.o mailing list |