summarylogtreecommitdiffstats
path: root/depmod.script
diff options
context:
space:
mode:
authorVincent Grande2021-01-11 19:57:18 -0500
committerVincent Grande2021-01-11 19:57:18 -0500
commit3037f34a210397342f7d98fb6621180175d63022 (patch)
treec1806528580917960b1c8911cac34d01ce5bb153 /depmod.script
parent72687c320f7d5ab92484e06c5322e61d394a2476 (diff)
downloadaur-kmod-git.tar.gz
big fix
Diffstat (limited to 'depmod.script')
-rw-r--r--depmod.script9
1 files changed, 9 insertions, 0 deletions
diff --git a/depmod.script b/depmod.script
new file mode 100644
index 000000000000..79f1ccd30262
--- /dev/null
+++ b/depmod.script
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+while read -r f; do
+ if [[ -e ${f}vmlinuz ]]; then
+ depmod $(basename "$f")
+ fi
+done
+
+# vim:set ft=sh sw=2 et: