9 lines
201 B
Plaintext
Executable File
9 lines
201 B
Plaintext
Executable File
#/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
|