summaryrefslogtreecommitdiffstats
path: root/intercept
diff options
context:
space:
mode:
Diffstat (limited to 'intercept')
-rw-r--r--intercept/depmod8
1 files changed, 4 insertions, 4 deletions
diff --git a/intercept/depmod b/intercept/depmod
index a60768f..f8a4f9a 100644
--- a/intercept/depmod
+++ b/intercept/depmod
@@ -1,10 +1,10 @@
#!/bin/sh
if [ "x$1" = "x-a" ] || [ "x$1" = "x-A" ]; then
- if [ ! -f $OPKG_INTERCEPT_DIR/depmod ]; then
- echo "depmod -A" > $OPKG_INTERCEPT_DIR/depmod
- chmod +x $OPKG_INTERCEPT_DIR/depmod
- fi
+ 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