summaryrefslogtreecommitdiffstats
path: root/tests/ipecamera/autotrigger.sh
blob: 1c8f35319b49947c4e3ec92022d02c5863ea4766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/bash

function pci {
    PCILIB_PATH="../../"
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
}

echo "Starting the grabber"
pci -g -o /dev/null --run-time 12000000 --verbose 10 &
pid=$!

usleep 100000
pci -w 9040 80000a01
usleep 10000000
pci -w 9040 80000001

echo "Waiting grabber to finish"
wait $pid