scripts-main/Laptop/cleankernels

9 lines
201 B
Plaintext
Raw Normal View History

2018-06-21 22:49:50 -05:00
#/bin/bash
ls /boot/ | grep vmlinuz | sed 's@vmlinuz-@linux-image-@g' | grep -v `uname -r` > /tmp/kernelList
for I in `cat /tmp/kernelList`
do
aptitude remove $I
done
rm -f /tmp/kernelList
update-grub