summaryrefslogtreecommitdiff
path: root/recipes-devtools/opkg/files/modprobe
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/opkg/files/modprobe')
-rwxr-xr-xrecipes-devtools/opkg/files/modprobe10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-devtools/opkg/files/modprobe b/recipes-devtools/opkg/files/modprobe
new file mode 100755
index 0000000..87785dd
--- /dev/null
+++ b/recipes-devtools/opkg/files/modprobe
@@ -0,0 +1,10 @@
+#!/bin/sh
+# This script (modprobe) depends on sorting alphabetically after
+# depmod.
+
+ echo "modprobe $@" >> $OPKG_INTERCEPT_DIR/depmod
+ sort -u $OPKG_INTERCEPT_DIR/depmod > $OPKG_INTERCEPT_DIR/depmod.tmp
+ mv $OPKG_INTERCEPT_DIR/depmod.tmp $OPKG_INTERCEPT_DIR/depmod
+ chmod +x $OPKG_INTERCEPT_DIR/depmod
+ cp $OPKG_INTERCEPT_DIR/depmod /tmp/modprobestuff.txt
+