Ravi Shah
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
install.sh
|
|
@ -1,4 +1,4 @@ |
|
|
#!/bin/sh |
|
|
|
|
|
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
echo "This script will install the bottlepy web server and allow you to control and monitor the state of your smart garage door opener." |
|
|
echo "This script will install the bottlepy web server and allow you to control and monitor the state of your smart garage door opener." |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
@ -22,7 +22,7 @@ then |
|
|
wget https://raw.githubusercontent.com/Rav4s/Pi-Garage-Door-Opener/master/Python_script_for_garage_door.py |
|
|
wget https://raw.githubusercontent.com/Rav4s/Pi-Garage-Door-Opener/master/Python_script_for_garage_door.py |
|
|
sleep 0.5 |
|
|
sleep 0.5 |
|
|
echo "Editing /etc/rc.local for auto startup..." |
|
|
echo "Editing /etc/rc.local for auto startup..." |
|
|
sed 'x; ${s/.*/python3 /home/pi/Python_script_for_garage_door.py &/;p;x}; 1d' /etc/rc.local |
|
|
|
|
|
|
|
|
sudo sed -i 'x; ${s/.*/python3 /home/pi/Python_script_for_garage_door.py &/;p;x}; 1d' /etc/rc.local |
|
|
sleep 0.5 |
|
|
sleep 0.5 |
|
|
echo "Successful install! Rebooting in 5 seconds!" |
|
|
echo "Successful install! Rebooting in 5 seconds!" |
|
|
sleep 5 |
|
|
sleep 5 |
|
|
|