summaryrefslogtreecommitdiff
path: root/recipes-devtools/opkg/files/modprobe
blob: 87785ddf10b62efa3b8ab97bcd04e8d9683c8deb (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# This script (modprobe) depends on sorting alphabetically after
# depmod.

  echo "modprobe $@" >> $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
  cp $OPKG_INTERCEPT_DIR/depmod /tmp/modprobestuff.txt