Last active
December 16, 2015 07:19
-
-
Save maltzsama/5397533 to your computer and use it in GitHub Desktop.
Install pyserial arch linux or ubuntu/debian
This file contains hidden or 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
| #!/bin/bash | |
| x=$(lsb_release -a | grep "Distributor ID:") | |
| if [ ${x:16:6} = "Ubuntu" ] || [ ${x:16:6} = "Debian" ]; then | |
| #Instalar a pyserial no ubuntu/debian | |
| echo "Ubuntu ou debian" | |
| apt-get install python-pyserial | |
| elif [ ${x:16:4} = "arch" ]; then | |
| #Instalar a pyserial no Arch Linux | |
| echo "Arch linux" | |
| pacman -S python-pyserial | |
| else | |
| echo "Distro não reconhecida" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment