Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0db1a08
commit b32c638
Showing
1 changed file
with
25 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
PROGRESS_FILE=/tmp/dependancy_broadlink_in_progress | ||
if [ ! -z $1 ]; then | ||
PROGRESS_FILE=$1 | ||
fi | ||
touch ${PROGRESS_FILE} | ||
echo 0 > ${PROGRESS_FILE} | ||
echo "********************************************************" | ||
echo "* Installation des dépendances *" | ||
echo "********************************************************" | ||
sudo apt-get update | ||
echo 50 > ${PROGRESS_FILE} | ||
sudo apt-get install -y python3-pip python3-dev python3-pyudev libudev-dev python3-setuptools python3-serial python3-requests libffi-dev libssl-dev | ||
sudo pip3 install wheel | ||
sudo apt-get remove -y python3-cryptography | ||
sudo pip3 uninstall -y cryptography | ||
sudo pip3 install cryptography | ||
sudo pip3 install pycrypto | ||
sudo pip3 install pyudev | ||
sudo pip3 install requests | ||
echo 100 > ${PROGRESS_FILE} | ||
echo "********************************************************" | ||
echo "* Installation terminée *" | ||
echo "********************************************************" | ||
rm ${PROGRESS_FILE} | ||
PROGRESS_FILE=/tmp/dependancy_broadlink_in_progress | ||
if [ ! -z $1 ]; then | ||
PROGRESS_FILE=$1 | ||
fi | ||
touch ${PROGRESS_FILE} | ||
echo 0 > ${PROGRESS_FILE} | ||
echo "********************************************************" | ||
echo "* Installation des dépendances *" | ||
echo "********************************************************" | ||
sudo apt-get update | ||
echo 50 > ${PROGRESS_FILE} | ||
sudo apt-get install -y python3-pip python3-dev python3-pyudev libudev-dev python3-setuptools python3-serial python3-requests libffi-dev libssl-dev | ||
sudo pip3 install wheel | ||
sudo apt-get remove -y python3-cryptography | ||
sudo pip3 uninstall -y cryptography | ||
sudo pip3 install cryptography==2.6.1 | ||
sudo pip3 install pycrypto | ||
sudo pip3 install pyudev | ||
sudo pip3 install requests | ||
sudo pip3 install asn1crypto | ||
echo 100 > ${PROGRESS_FILE} | ||
echo "********************************************************" | ||
echo "* Installation terminée *" | ||
echo "********************************************************" | ||
rm ${PROGRESS_FILE} |