Created
April 29, 2016 14:51
-
-
Save abruneau/a49a49c92c94b4445d1e2a264b36579e to your computer and use it in GitHub Desktop.
Setup wifi for Centos 7 installation on Macbook
This file contains 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
sudo yum group install 'Development Tools' | |
sudo yum install redhat-lsb kernel-abi-whitelists | |
sudo yum install kernel-devel-$(uname -r) | |
mkdir -p ~/rpmbuild/{BUILD,RPMS,SPECS,SOURCES,SRPMS} | |
echo -e "%_topdir $(echo $HOME)/rpmbuild\n%dist .el$(lsb_release -s -r|cut -d"." -f1).local" >> ~/.rpmmacros | |
wget http://elrepo.org/linux/elrepo/el7/SRPMS/wl-kmod-6_30_223_271-2.el7.elrepo.nosrc.rpm | |
wget http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz | |
mv hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz ~/rpmbuild/SOURCES/ | |
rpmbuild --rebuild --target=`uname -m` --define 'packager <your-name>' /<path-to-nosrc.rpm>/wl-kmod*nosrc.rpm | |
sudo yum remove \*ndiswrapper\* | |
rpm -Uvh /path-to-rpm/kmod-wl*rpm | |
modprobe wl | |
rm -rf ~/rpmbuild |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment