#!/bin/bash 

sudo apt install xz-utils curl cpio make curl xz-utils cpio -y
cd /tmp
git clone https://github.com/patjak/facetimehd-firmware.git
cd facetimehd-firmware
make
sudo make install
sudo apt-get install linux-headers-generic git kmod libssl-dev checkinstall
cd /tmp
git clone https://github.com/patjak/bcwc_pcie.git
cd bcwc_pcie
make
sudo make install
sudo depmod

sudo modprobe facetimehd

