summaryrefslogtreecommitdiffstats
path: root/intercept/depmod
blob: f8a4f9a2e89270d5c1e81e49ff2212e657a5cadf (plain)
1
2
3
4
5
6
7
8
9
10
11
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 $*