summarylogtreecommitdiffstats
path: root/cleanup
diff options
context:
space:
mode:
authorabelian4242021-01-18 11:23:08 +0600
committerabelian4242021-01-18 11:23:08 +0600
commitd386897cd79e941b9baf162500d00e6a27891648 (patch)
tree0c5f11fa29e702c6c28d4dc7b42ca94fe50ac2fe /cleanup
parent1e81bde614cffeb173874b9120a18b7eb80db5c2 (diff)
downloadaur-d386897cd79e941b9baf162500d00e6a27891648.tar.gz
Update to 5.10.7
Diffstat (limited to 'cleanup')
-rwxr-xr-xcleanup10
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:
+