* [matrix-gui-v2-apps][PATCH] tof: Check if SimplePeopleTracking file is present, before starting TOF demo
@ 2018-12-05 21:04 Djordje Senicic
0 siblings, 0 replies; only message in thread
From: Djordje Senicic @ 2018-12-05 21:04 UTC (permalink / raw)
To: meta-arago; +Cc: d-senicic1, Djordje Senicic
Signed-off-by: Djordje Senicic <x0157990@ti.com>
---
.../runSimplePeopleTracking.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
index b01110c..53686ce 100644
--- a/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
+++ b/machinevision_apps/machinevision_simple_people_tracking/runSimplePeopleTracking.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+FILE="/usr/bin/SimplePeopleTracking"
+if [ -f $FILE ]; then
machine_type="`cat /etc/hostname`"
echo "Simple People Tracking TOF demo started!"
SimplePeopleTracking -w 160 -h 120 -f 30 & pid=$!
@@ -8,3 +10,7 @@ for adjpri in $(pgrep weston)
do
renice -n 19 -p $adjpri
done
+
+else
+echo "SimplePeopleTracking not included in the filesystem"
+fi
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-06 2:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-05 21:04 [matrix-gui-v2-apps][PATCH] tof: Check if SimplePeopleTracking file is present, before starting TOF demo Djordje Senicic
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.