forked from zoroloco/boothy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildboothy.sh
36 lines (27 loc) · 938 Bytes
/
buildboothy.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
#!/bin/bash
# Instruction: move this file to /usr/local/src and run from there.
#
# chmod +x buildboothy.sh
#
# This script will get latest site from github
#
clear
echo "Running build script."
SRC_DIR="/usr/local/src/boothy"
echo "Deleting source directory"
rm -rf $SRC_DIR
echo "Creating source directory"
mkdir $SRC_DIR
echo "Retrieving latest repo: git clone https://github.com/zoroloco/boothy.git " $SRC_DIR
git clone https://github.com/zoroloco/boothy.git $SRC_DIR
echo "Making run file executable."
chmod +x $SRC_DIR/run.sh
chmod +x $SRC_DIR/buildboothy.sh
echo "Making symbolic link to desktop for saved images."
ln -s $SRC_DIR/photos /home/pi/Desktop
echo "Making startup script executable"
chmod +x $SRC_DIR/rpi/etc/init.d/boothyStart.sh
echo "Moving startup script to /etc/init.d"
cp $SRC_DIR/rpi/etc/init.d/boothyStart.sh /etc/init.d
echo "Making boothy run automatically at boot"
update-rc.d boothyStart.sh defaults