|  |  | @@ -9,20 +9,31 @@ if [ "$(id -u)" != "0" ]; then | 
		
	
		
			
			|  |  |  | exit 1 | 
		
	
		
			
			|  |  |  | fi | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | if [ "$*" != "no_hello_video" ] | 
		
	
		
			
			|  |  |  | then | 
		
	
		
			
			|  |  |  | echo "Installing without hello_video" | 
		
	
		
			
			|  |  |  | echo "==========================" | 
		
	
		
			
			|  |  |  | fi | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | echo "Installing dependencies..." | 
		
	
		
			
			|  |  |  | echo "==========================" | 
		
	
		
			
			|  |  |  | apt-get update | 
		
	
		
			
			|  |  |  | apt-get -y install build-essential python-dev python-pip python-pygame supervisor git omxplayer | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | echo "Installing hello_video..." | 
		
	
		
			
			|  |  |  | echo "=========================" | 
		
	
		
			
			|  |  |  | git clone https://github.com/adafruit/pi_hello_video.git | 
		
	
		
			
			|  |  |  | cd pi_hello_video | 
		
	
		
			
			|  |  |  | ./rebuild.sh | 
		
	
		
			
			|  |  |  | cd hello_video | 
		
	
		
			
			|  |  |  | make install | 
		
	
		
			
			|  |  |  | cd ../.. | 
		
	
		
			
			|  |  |  | rm -rf pi_hello_video | 
		
	
		
			
			|  |  |  | apt-get -y install python-dev python-pip python-pygame supervisor git omxplayer | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | #check if hello_video should be installed | 
		
	
		
			
			|  |  |  | if [ "$*" != "no_hello_video" ] | 
		
	
		
			
			|  |  |  | then | 
		
	
		
			
			|  |  |  | echo "Installing hello_video..." | 
		
	
		
			
			|  |  |  | echo "=========================" | 
		
	
		
			
			|  |  |  | apt-get -y install build-essential | 
		
	
		
			
			|  |  |  | git clone https://github.com/adafruit/pi_hello_video.git | 
		
	
		
			
			|  |  |  | cd pi_hello_video | 
		
	
		
			
			|  |  |  | ./rebuild.sh | 
		
	
		
			
			|  |  |  | cd hello_video | 
		
	
		
			
			|  |  |  | make install | 
		
	
		
			
			|  |  |  | cd ../.. | 
		
	
		
			
			|  |  |  | rm -rf pi_hello_video | 
		
	
		
			
			|  |  |  | fi | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | echo "Installing video_looper program..." | 
		
	
		
			
			|  |  |  | echo "==================================" | 
		
	
	
		
			
				|  |  | @@ -35,4 +46,4 @@ echo "===========================================" | 
		
	
		
			
			|  |  |  | cp video_looper.conf /etc/supervisor/conf.d/ | 
		
	
		
			
			|  |  |  | service supervisor restart | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | echo "Finished!" | 
		
	
		
			
			|  |  |  | echo "Finished!" |