-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·51 lines (39 loc) · 1.04 KB
/
install.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
#
# Be VERY Careful. This script may be executed with admin privileges.
echo "Openframe Video -- install.sh"
if ! [ -z "$TRAVIS" ]; then
echo "TRAVIS env, don't install"
exit 0
fi
# Some limited platform detection might be in order... though at present we're targeting the Pi
os=$(uname)
arq=$(uname -m)
if [ $os == "Linux" ]; then
# on Debian Linux distributions
# same for any debian disto (untested), including rpi (tested)
sudo apt-get install -y omxplayer
if [ $arq == "armv7l" ]; then
# on RaspberryPi 2 or higher
echo "armv7l"
# ####
#
# FOR NOW, CODE GOES HERE since we're shooting for RPi support
#
# ####
elif [ $arq == "armv6l" ]; then
# on RaspberryPi 1 (A+, B+)
echo "armv6l"
# ####
#
# FOR NOW, CODE GOES HERE since we're shooting for RPi support
#
# ####
else
# Non-arm7 Debian...
echo "non armv7l"
fi
elif [ $os == "Darwin" ]; then
# OSX
echo "osx"
fi