forked from TeCSAR-UNCC/Edge-Video-Analytic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXavier_Setup.sh
executable file
·37 lines (28 loc) · 894 Bytes
/
Xavier_Setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo "------------------------- Setting up for Jetson Xavier -------------------------"
function exitIfError {
if [[ $? -ne 0 ]] ; then
echo ""
echo "------------------------- -------------------------"
echo "Errors detected. Exiting script. The software might have not been successfully installed."
echo "------------------------- -------------------------"
exit 1
fi
}
function executeShInItsFolder {
# $1 = sh file name
# $2 = folder where the sh file is
# $3 = folder to go back
cd $2
exitIfError
sudo chmod +x $1
exitIfError
bash ./$1
exitIfError
cd $3
exitIfError
}
executeShInItsFolder "./scripts/ubuntu/install_caffe_and_openpose_JetsonTX2_JetPack3.3.sh" "./" "./"
exitIfError
echo "------------------------- Caffe and OpenPose Installed -------------------------"
echo ""