summaryrefslogtreecommitdiffstats
path: root/intercept
diff options
context:
space:
mode:
Diffstat (limited to 'intercept')
-rw-r--r--intercept/depmod12
-rw-r--r--intercept/ldconfig7
-rw-r--r--intercept/update-modules7
3 files changed, 26 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 $*
+
diff --git a/intercept/ldconfig b/intercept/ldconfig
new file mode 100644
index 0000000..2be99b4
--- /dev/null
+++ b/intercept/ldconfig
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ ! -f $IPKG_INTERCEPT_DIR/ldconfig ]; then
+ echo "ldconfig" > $IPKG_INTERCEPT_DIR/ldconfig
+ chmod +x $IPKG_INTERCEPT_DIR/ldconfig
+fi
+
diff --git a/intercept/update-modules b/intercept/update-modules
new file mode 100644
index 0000000..431bfcd
--- /dev/null
+++ b/intercept/update-modules
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ ! -f $IPKG_INTERCEPT_DIR/update-modules ]; then
+ echo "update-modules" > $IPKG_INTERCEPT_DIR/update-modules
+ chmod +x $IPKG_INTERCEPT_DIR/update-modules
+fi
+