Skip to content

Instantly share code, notes, and snippets.

@lpirola
Last active September 5, 2018 16:18
Show Gist options
  • Save lpirola/78f292c01de1c49872a0439971d2e8e3 to your computer and use it in GitHub Desktop.
Save lpirola/78f292c01de1c49872a0439971d2e8e3 to your computer and use it in GitHub Desktop.
Script to clone, build and install firmware to current kernel
#!/bin/bash
echo "Installing FacetimeHD camera"
cd /tmp
git clone https://github.com/patjak/bcwc_pcie.git
cd bcwc_pcie/
make
checkinstall
make install
printf "done\n\n";
printf "Running depmod\n";
depmod
printf "done\n\n";
printf "Running modprobe -r bdc_pci\n";
modprobe -r bdc_pci
printf "done\n\n";
printf "Loading driver\n";
modprobe facetimehd
echo facetimehd >> /etc/modules
printf "done\n\n";
printf "Checking if all relevant modules are loaded"
lsmod | grep facetimehd
#Warning about ssl can be ignored - ref - https://github.com/DIGImend/digimend-kernel-drivers/commit/654ddfb5535cedbc1b3e49458d4e46fefb0a721d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment