summarylogtreecommitdiffstats
path: root/cleanup
diff options
context:
space:
mode:
authorabelian4242021-02-24 10:13:18 +0600
committerabelian4242021-02-24 10:13:18 +0600
commit198b11bd718e060f1f4a87cf7bbbb8f8f495d84f (patch)
tree5fa1f958b4e7d388698f749ec6216817679c291d /cleanup
parentef84a794c505f235dd3c8a13a1b79721718dd0f0 (diff)
downloadaur-198b11bd718e060f1f4a87cf7bbbb8f8f495d84f.tar.gz
Bump
Diffstat (limited to 'cleanup')
-rw-r--r--cleanup10
1 files changed, 10 insertions, 0 deletions
diff --git a/cleanup b/cleanup
new file mode 100644
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:
+