diff --git a/microcode_ctl.init b/microcode_ctl.init index e521d2e..86cdaeb 100755 --- a/microcode_ctl.init +++ b/microcode_ctl.init @@ -40,10 +40,10 @@ function start () RETVAL=1 # Make sure we are on an intel machine vendor=`cat /proc/cpuinfo | \ - grep "^vendor_id" | sort -u | \ - awk -F ": " '{ print $2 }'` + grep "^vendor_id" | sort -u | \ + awk -F ": " '{ print $2 }'` if [ "$vendor" != "GenuineIntel" ]; then - return + return fi # Microcode wasn't available until 686's. @@ -60,9 +60,9 @@ function start () lt=0 while [ ! -c /dev/cpu/microcode ]; do - lt=$[lt+1]; - [ $lt -gt 5 ] && break; - sleep 1; + lt=$[lt+1]; + [ $lt -gt 5 ] && break; + sleep 1; done daemon $PROGRAM $ARGUMENTS @@ -73,8 +73,8 @@ function start () then echo $"$0: kernel does not have microcode device support" fi + /sbin/rmmod microcode echo - /sbin/rmmod microcode }