summaryrefslogtreecommitdiff
path: root/system/kmod/kmod.trigger
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 01:21:43 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 01:21:43 -0500
commitf37f6ba19db229119ba3bd209dc10814dacf07b0 (patch)
treede1e376137768e3df281aa7d992c9b5686d9c40b /system/kmod/kmod.trigger
parentf6aa28831790b57cd2cb7407e3a7f69a2cb08b07 (diff)
downloadpackages-f37f6ba19db229119ba3bd209dc10814dacf07b0.tar.gz
packages-f37f6ba19db229119ba3bd209dc10814dacf07b0.tar.bz2
packages-f37f6ba19db229119ba3bd209dc10814dacf07b0.tar.xz
packages-f37f6ba19db229119ba3bd209dc10814dacf07b0.zip
system/kmod: pull in for mkinitfs
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
+