script for removing old kernels for debian-based systems added

This commit is contained in:
Cyryl Plotnicki-Chudyk 2015-02-28 19:27:23 +01:00
parent 7565f5bc07
commit 8ee1102711

3
tools/remove_old_kernels Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
sudo apt-get remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)