-
-
Save glycerine102/9a3803b995efb47c7687a38dbcd2ed84 to your computer and use it in GitHub Desktop.
Enables Macbook Pro Retina's FaceTimeHD on Ubuntu/Debian (thanks to patjak)
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 | |
DRIVER_DIR="bcwc_pcie" | |
if [ ! -d "$DRIVER_DIR" ]; then | |
echo "Dir not present. Well, let's bootstrap then" | |
echo "Cloning code" | |
git clone https://github.com/patjak/bcwc_pcie.git | |
fi | |
echo "Installing utils" | |
sudo apt-get install -y cpio make curl xz-utils git kmod libssl-dev checkinstall | |
# enter dir | |
pushd bcwc_pcie | |
# extract firmware | |
pushd firmware | |
echo "Extracting firmware" | |
sudo make clean | |
sudo make -j4 | |
sudo make install | |
popd | |
echo "Building driver" | |
sudo make clean | |
sudo make -j4 | |
sudo make install | |
echo "Linking driver" | |
sudo depmod | |
echo "Unloading deprecated driver" | |
sudo modprobe -r bdc_pci | |
echo "Unloading old driver version" | |
sudo modprobe -r facetimehd | |
echo "Loading driver" | |
sudo modprobe facetimehd | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment