From 5a85d83e3e099c5781c205b62fecd25474f0985a Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 28 Apr 2015 21:16:02 +0200 Subject: Link against ufodecode --- tests/autotrigger.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'tests/autotrigger.sh') 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" -- cgit v1.2.3