packages: microcode_ctl/microcode_ctl.init - try to remove microcode kernel...
gotar
gotar at pld-linux.org
Fri Oct 29 01:48:47 CEST 2010
Author: gotar Date: Thu Oct 28 23:48:47 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- try to remove microcode kernel module after update, fixed status (it's
not a daemon), cosmetics
---- Files affected:
packages/microcode_ctl:
microcode_ctl.init (1.14 -> 1.15)
---- Diffs:
================================================================
Index: packages/microcode_ctl/microcode_ctl.init
diff -u packages/microcode_ctl/microcode_ctl.init:1.14 packages/microcode_ctl/microcode_ctl.init:1.15
--- packages/microcode_ctl/microcode_ctl.init:1.14 Sat Aug 15 22:18:48 2009
+++ packages/microcode_ctl/microcode_ctl.init Fri Oct 29 01:48:42 2010
@@ -23,9 +23,10 @@
msg_starting "IA32 Microcode Update"
_modprobe microcode
- daemon /usr/sbin/microcode_ctl -qu -f /lib/firmware/microcode.dat -d /dev/cpu/microcode
+ daemon /usr/sbin/microcode_ctl -qf /lib/firmware/microcode.dat -d /dev/cpu/microcode
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/microcode_ctl
+ rmmod microcode 2>/dev/null
}
stop() {
@@ -41,17 +42,23 @@
# See how we were called.
case "$1" in
start)
- start
+ start
;;
stop)
- stop
+ stop
;;
restart|reload|force-reload)
stop
start
;;
status)
- status microcode_ctl
+ if [ -f /var/lock/subsys/microcode_ctl ]; then
+ nls "IA32 Microcode Update has been loaded"
+ exit 0
+ else
+ msg_not_running "IA32 Microcode Update"
+ exit 3
+ fi
;;
*)
msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/microcode_ctl/microcode_ctl.init?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list