4
PCILIB_PATH="/root/pcitool"
5
LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
11
echo "Starting the grabber"
14
pci -g -o images.raw --run-time 1000000000 &
19
for i in `seq 1 100000`; do
20
old_size=`ls -la images.raw | cut -d " " -f 5`
24
new_size=`ls -la images.raw | cut -d " " -f 5`
25
if [ $old_size -eq $new_size ]; then
27
new_size=`ls -la images.raw | cut -d " " -f 5`
28
if [ $old_size -eq $new_size ]; then
29
echo "Incomplete frame..."
36
echo "Waiting grabber to finish"