diff options
Diffstat (limited to 'tests/autotrigger.sh')
-rwxr-xr-x | tests/autotrigger.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/autotrigger.sh b/tests/autotrigger.sh index b7318c8..678f854 100755 --- a/tests/autotrigger.sh +++ b/tests/autotrigger.sh @@ -1,9 +1,16 @@ #! /bin/bash function pci { - PCILIB_PATH=`which pci` - #LD_LIBRARY_PATH="$PCILIB_PATH" - $PCILIB_PATH/pci $* + APP_PATH=`dirname $0`/.. + if [ -d $APP_PATH/../pcitool ]; then + PCILIB_BINARY="$APP_PATH/../pcitool/pcitool/pci" + PCILIB_PATH="$APP_PATH/../pcitool/pcilib" + else + PCILIB_BINARY=`which pci` + PCILIB_PATH="" + fi + + LD_LIBRARY_PATH="$PCILIB_PATH" PCILIB_PLUGIN_DIR="$APP_PATH" $PCILIB_BINARY $* } echo "Starting the grabber" |