#!/bin/bash

# Lukas Petrus
# install script for start play some stream

SCRIPT_NAME="playStream"
USERNAME="pi"


#povolit skriptu spousteni
chmod +x /home/$USERNAME/$SCRIPT_NAME.sh

#prida radky do crontab
(crontab -l 2>/dev/null; echo -e "* * * * * /home/$USERNAME/$SCRIPT_NAME.sh\n@reboot /home/$USERNAME/playStream.sh") | crontab -u $USERNAME -

crontab -l 
#ma vypadat takto:
#* * * * * /home/pi/playStream.sh
#@reboot /home/pi/playStream.sh
