Skip to content

Instantly share code, notes, and snippets.

@Haptein
Created October 13, 2017 05:54
Show Gist options
  • Select an option

  • Save Haptein/e07c11f4e31254ada63df66f6e1e9bba to your computer and use it in GitHub Desktop.

Select an option

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.
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