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