Created
October 13, 2017 05:54
-
-
Save Haptein/e07c11f4e31254ada63df66f6e1e9bba to your computer and use it in GitHub Desktop.
Bash script for rebuilding Droidcam. Useful for me since I gotta rebuild it each time there's a kernel update.
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
| cd /opt/ #place where droidcam is already installed | |
| sudo ./droidcam-uninstall | |
| cd /tmp/ | |
| wget https://www.dev47apps.com/files/600/droidcam-64bit.tar.bz2 | |
| file=droidcam-64bit.tar.bz2 | |
| checksum=ad14437f0556d80f981d1027766afe29 | |
| md5check="$(md5sum $file)" | |
| if [ "$checksum $file"="md5check" ]; | |
| then | |
| echo "Good checksum." | |
| tar xjf $file | |
| cd droidcam-64bit/ | |
| sudo ./install | |
| echo "Droidcam installed." | |
| else | |
| rm $file | |
| echo "Something went wrong." | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment