自动清除其他内核,安装新的3.13-46内核,为锐速,for ubuntu 14.04 LTS
#!/bin/bash
str=`ls /boot/ | grep initrd.img|cut -c 12-`
arr=(${str// / })
cmd="apt-get remove "
for i in ${arr[@]}
do
echo "Found Linux: "$i
cmd=${cmd}"linux-image-"${i}" "
done
eval $cmd
apt-get install linux-image-3.13.0-46-generic