Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include latest driver within the same repo. #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# fixRTL8723BE
Some HP laptops with **Realtek rtl8723be NICs** having one antenna face problems connecting to WiFi. This repository provides an automated fix for the problem by installing the latest drivers provided by [this](https://github.com/lwfinger/rtlwifi_new) repo and making the necessary configurations.
Some HP laptops with **Realtek rtl8723be NICs** having one antenna face problems connecting to WiFi. This repository provides an automated fix for the problem by installing the latest driver and making the necessary configurations.
The [original repo](https://github.com/tarunbatra/fixRTL8723BE) of this fork requires that you download the latest driver from another [Github repo](https://github.com/lwfinger/rtlwifi_new). I modified it to include the latest driver in the same repo since you probably don't have access to the internet when you're trying to fix your wifi.

## Installation
Just clone this repo. To clone, run:

`git clone https://github.com/tarunbatra/fixRTL8723BE`
`git clone https://github.com/nourharidy/fixRTL8723BE`

## Usage
- `cd` to the project root
Expand Down
29 changes: 2 additions & 27 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
#!/usr/bin env bash
# Modified version by @nourharidy

REPO="https://github.com/lwfinger/rtlwifi_new"
CONFIG_DIR=`pwd`

checkGit() {
if git --version &> /dev/null; then
echo "Git found"
else
echo "Git not found"
fi
}

installGit() {
echo "Installing git\n"
sudo apt-get install git >> /dev/null
}

cloneRepo() {
echo "Downloading latest drivers from $REPO"
if git clone $REPO /tmp/rtlwifi_new_$$; then
echo "Drivers downloaded successfully"
else
echo "Download couldn't be completed. Exiting"
exit 1
fi
}

installDrivers() {
cd /tmp/rtlwifi_new_$$ || (echo "Drivers not found"; exit 1)
cd ./rtlwifi_new_11043 || (echo "Drivers not found"; exit 1)
echo "Building drivers"
if make && sudo make install; then
echo "Drivers built successfully"
Expand Down Expand Up @@ -56,8 +33,6 @@ restartWiFi() {
}

echo "Fixing Wifi"
checkGit || installGit
cloneRepo $REPO
installDrivers
configureWiFi $CONFIG_DIR
restartWiFi
Expand Down
1 change: 1 addition & 0 deletions rtlwifi_new_11043
Submodule rtlwifi_new_11043 added at 0547b3