diff options
Diffstat (limited to 'cleanup')
-rwxr-xr-x | cleanup | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cleanup b/cleanup new file mode 100755 index 000000000000..c00c08d82679 --- /dev/null +++ b/cleanup @@ -0,0 +1,10 @@ +#!/bin/bash + +for _f in /usr/lib/modules/*tkg*; do + if [[ ! -e ${_f}/vmlinuz ]]; then + rm -rf "$_f" + fi +done + +# vim:set ft=sh sw=2 et: + |