summaryrefslogtreecommitdiff
path: root/system/kmod/kmod.trigger
diff options
context:
space:
mode:
Diffstat (limited to 'system/kmod/kmod.trigger')
-rw-r--r--system/kmod/kmod.trigger8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/kmod/kmod.trigger b/system/kmod/kmod.trigger
new file mode 100644
index 000000000..1693ea1ea
--- /dev/null
+++ b/system/kmod/kmod.trigger
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+for i in "$@"; do
+ if [ -d "$i" ]; then
+ /sbin/depmod ${i#/lib/modules/}
+ fi
+done
+