-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathinstall.sh
executable file
·52 lines (38 loc) · 1.25 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
52
#!/bin/bash
# Be VERY Careful. This script may be executed with admin privileges.
echo "Openframe -- install.sh"
# Some limited platform detection might be in order... though at present we're targeting the Pi
os=$(uname)
arq=$(uname -m)
# # copy default .ofrc to user dir
# echo `env`
mkdir -p ~/.openframe
cp .ofrc ~/.openframe/.ofrc
cp ./scripts/autoboot.sh ~/.openframe/autoboot.sh
echo "Update default extensions"
npm update -g openframe-image openframe-video openframe-glslviewer openframe-website
if [ $os == "Linux" ]; then
# on Debian Linux distributions
if [ $arq == "armv7l" ]; then
# on RaspberryPi
echo "armv7l"
# disable overscan
# sudo sed -i 's/.*overscan.*/#&/' /boot/config.txt
# rotate the display
# sudo echo "display_rotate=1" >> /boot/config.txt
# disable screen blanking
sudo sed -i -r 's/BLANK_TIME=[0-9]+/BLANK_TIME=0/' /etc/kbd/config
sudo sed -i -r 's/POWERDOWN_TIME=[0-9]+/POWERDOWN_TIME=0/' /etc/kbd/config
echo "Openframe updated, please run:"
echo ""
echo "source ~/.bashrc"
echo ""
echo ""
else
# Non-arm7 Debian...
echo "non armv7l"
fi
elif [ $os == "Darwin" ]; then
# OSX
echo "osx"
fi