-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from motom001/development
Development
- Loading branch information
Showing
10 changed files
with
111 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -e # Exit immediately if a command exits with a non-zero status. | ||
set -x # Print commands and their arguments as they are executed. | ||
|
||
pip install --upgrade pip | ||
pip --version | ||
pip uninstall -y setuptools | ||
sudo rm -f /usr/local/lib/python2.7/dist-packages/setuptools*.egg | ||
pip install --upgrade setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -e # Exit immediately if a command exits with a non-zero status. | ||
set -x # Print commands and their arguments as they are executed. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -e # Exit immediately if a command exits with a non-zero status. | ||
set -x # Print commands and their arguments as they are executed. | ||
|
||
#pip install --upgrade pip | ||
#pip install --upgrade setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
#set -e # Exit immediately if a command exits with a non-zero status. | ||
set -x # Print commands and their arguments as they are executed. | ||
|
||
START_MODE=daemon | ||
|
||
if [[ $START_MODE = "application" ]]; then | ||
sudo doorpi_cli --trace --test | ||
fi | ||
|
||
if [[ $START_MODE = "daemon" ]]; then | ||
sudo service doorpi status | ||
if [ $? -ne 3 ]; then | ||
exit 1 | ||
fi | ||
sudo service doorpi start | ||
if [ $? -ne 0 ]; then | ||
exit 1 | ||
fi | ||
sleep 5 | ||
sudo service doorpi status | ||
if [ $? -ne 0 ]; then | ||
exit 1 | ||
fi | ||
sudo service doorpi stop | ||
if [ $? -ne 0 ]; then | ||
exit 1 | ||
fi | ||
sleep 5 | ||
sudo service doorpi status | ||
if [ $? -ne 3 ]; then | ||
exit 1 | ||
fi | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
pip >= 7.1.2 | ||
setuptools >= 18.3.2 | ||
requests >= 2.7.0 | ||
RPi.GPIO >= 0.5.11 | ||
pifacedigitalio >= 3.0.5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters