summaryrefslogtreecommitdiffstats
path: root/src/intercept/depmod
diff options
context:
space:
mode:
Diffstat (limited to 'src/intercept/depmod')
-rw-r--r--src/intercept/depmod12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/intercept/depmod b/src/intercept/depmod
new file mode 100644
index 0000000..f8a4f9a
--- /dev/null
+++ b/src/intercept/depmod
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ "x$1" = "x-a" ] || [ "x$1" = "x-A" ]; then
+ echo "depmod $@" >> $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
+ exit 0
+fi
+
+/sbin/depmod $*
+