#!/bin/bash

asd() {
cat <<"EOT"




                         .^.
                         /   \
                        /     \
                *******/       \*******
           ***** *****/         \***** *****
       ***** ********/           \******** *****
      *** **********/             \********** ***
       ***** ******/               \****** *****
           ***** */        _**_     \* *****
                */      _-******\    \*
                /    _-" *****   "\   \
                \__-"              "\_/


                
EOT
}

asd


echo -e "***** Setting up  TLserver *****"
sudo cp TLserver /etc/init.d/TLserver
sudo chmod 0755 /etc/init.d/TLserver
sudo update-rc.d TLserver defaults

mkdir /home/pi/Documents
sudo chmod 0755 /home/pi/Documents

mkdir /home/pi/Documents/TL
sudo chmod 0755 /home/pi/Documents/TL

exit 0

#!/bin/bash

# to download the latest repository: git clone https://github.com/pfnegrini/time-lapse-server.git /home/pi/time-lapse-server

asd() {
cat <<"EOT"




                         .^.
                         /   \
                        /     \
                *******/       \*******
           ***** *****/         \***** *****
       ***** ********/           \******** *****
      *** **********/             \********** ***
       ***** ******/               \****** *****
           ***** */        _**_     \* *****
                */      _-******\    \*
                /    _-" *****   "\   \
                \__-"              "\_/



EOT
}

asd


echo -e "***** Setting up  TLserver *****"
sudo cp TLserver /etc/init.d/TLserver
sudo chmod 0755 /etc/init.d/TLserver
sudo update-rc.d TLserver defaults

mkdir /home/pi/Documents
sudo chmod 0755 /home/pi/Documents

mkdir /home/pi/Documents/TL
sudo chmod 0755 /home/pi/Documents/TL

#Install PiBlaster
sudo apt-get install -y autoconf
git clone https://github.com/sarfata/pi-blaster.git /home/pi/pi-blaster

cd /home/pi/pi-blaster
./autogen.sh
./configure
sudo make
sudo make install

exit 0

Install now installs also pi-blaster
Install now installs also pi-blaster
