summaryrefslogtreecommitdiff
path: root/virtual/miller-base/files/kernels-cleaner
blob: 23397241627b91a547507b48b7ffa849b51d038d (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

if [ $(file /boot/* | grep -i linux.kernel | wc -l) -gt 2 ] ; then
	echo "Cleaning old kernels..."
	eclean-kernel -n2
	grub-mkconfig -o /boot/grub/grub.cfg
fi