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