summarylogtreecommitdiffstats
path: root/cleanup
blob: c00c08d82679d4f1c66825c2e0d73ef9dd9f3b80 (plain)
1
2
3
4
5
6
7
8
9
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: