- Drop the node creation/deletion change from previous release. It'll cause
grief with selinux, and was a hack to get around a udev shortcoming that should be fixed properly.
This commit is contained in:
parent
5792b92686
commit
c735b2705c
@ -17,6 +17,15 @@ ARGUMENTS=-Qu
|
|||||||
RETVAL=0
|
RETVAL=0
|
||||||
PROGRAM=/sbin/microcode_ctl
|
PROGRAM=/sbin/microcode_ctl
|
||||||
|
|
||||||
|
# Lets just be sure we have a device file...
|
||||||
|
if [ ! -e $DEVICE ]; then
|
||||||
|
echo $"$0: microcode device $DEVICE doesn't exist?"
|
||||||
|
exit 1
|
||||||
|
elif [ ! -c $DEVICE ]; then
|
||||||
|
echo $"$0: $DEVICE not a character device?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -e /etc/firmware/microcode.dat ]; then
|
if [ ! -e /etc/firmware/microcode.dat ]; then
|
||||||
echo $"$0: microcode datafile not present (/etc/firmware/microcode.dat)"
|
echo $"$0: microcode datafile not present (/etc/firmware/microcode.dat)"
|
||||||
exit 1
|
exit 1
|
||||||
@ -41,10 +50,13 @@ function start ()
|
|||||||
echo -n $"Applying Intel Microcode update: "
|
echo -n $"Applying Intel Microcode update: "
|
||||||
|
|
||||||
/sbin/modprobe microcode
|
/sbin/modprobe microcode
|
||||||
if [ ! -d /dev/cpu ]; then
|
|
||||||
mkdir /dev/cpu
|
lt=0
|
||||||
fi
|
while [ ! -c /dev/cpu/microcode ]; do
|
||||||
/bin/mknod /dev/cpu/microcode c 10 184
|
lt=$[lt+1];
|
||||||
|
[ $lt -gt 5 ] && break;
|
||||||
|
sleep 1;
|
||||||
|
done
|
||||||
|
|
||||||
daemon $PROGRAM $ARGUMENTS
|
daemon $PROGRAM $ARGUMENTS
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
@ -54,7 +66,6 @@ function start ()
|
|||||||
echo $"$0: kernel does not have microcode device support"
|
echo $"$0: kernel does not have microcode device support"
|
||||||
fi
|
fi
|
||||||
/sbin/rmmod microcode
|
/sbin/rmmod microcode
|
||||||
rm -f /dev/cpu/microcode
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/microcode_ctl
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/microcode_ctl
|
||||||
|
@ -82,6 +82,11 @@ family=`cat /proc/cpuinfo | grep "^cpu family" | sort -u | awk -F ": " '{ print
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 25 2005 Dave Jones <davej@redhat.com>
|
||||||
|
- Drop the node creation/deletion change from previous release.
|
||||||
|
It'll cause grief with selinux, and was a hack to get around
|
||||||
|
a udev shortcoming that should be fixed properly.
|
||||||
|
|
||||||
* Fri Jan 21 2005 Dave Jones <davej@redhat.com>
|
* Fri Jan 21 2005 Dave Jones <davej@redhat.com>
|
||||||
- Create/remove the /dev/cpu/microcode dev node as needed.
|
- Create/remove the /dev/cpu/microcode dev node as needed.
|
||||||
- Use correct path again for the microcode.dat.
|
- Use correct path again for the microcode.dat.
|
||||||
|
Loading…
Reference in New Issue
Block a user