#! /bin/sh # # microcode Update the Intel CPU microcode. # # chkconfig: 2345 95 95 # description: microcode_ctl is a program that uses the kernel # to update the microcode of Intel P6 familly (ie # PPro, PII, Celeron, PIII, Celeron2). # processname: microcode_ctl # config: /etc/microcode_ctl.dat # ### BEGIN INIT INFO # Provides: microcode # Default-Start: 2 3 4 5 # Short-Description: Update the Intel CPU microcode # Description: microcode_ctl is a program that uses the kernel # to update the microcode of Intel P6 familly (ie # PPro, PII, Celeron, PIII, Celeron2). ### END INIT INFO # source function library . /etc/rc.d/init.d/functions RETVAL=0 case "$1" in start) gprintf "Applying Intel P6 Microcode update... " modprobe microcode /usr/sbin/microcode_ctl -Qu RETVAL=$? if [ $RETVAL -eq 0 ]; then action "" /bin/true touch /var/lock/subsys/microcode_ctl else action "" /bin/false fi ;; stop) rm -f /var/lock/subsys/microcode_ctl ;; reload|restart) ;; status) ;; *) gprintf "Usage: microcode {start|stop}\n" exit 1 esac exit $RETVAL