Last active
August 29, 2015 14:07
-
-
Save gayanhewa/90593ba24d48252a87a3 to your computer and use it in GitHub Desktop.
WIFI disconnection restart script - Realtek drivers
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
#!/bin/bash | |
# Unload kernel module , replace rtl8821ae with your device module. | |
modprobe -r rtl8821ae | |
#reload kernel module | |
modprobe rtl8821ae | |
# set wireless interface to down , replace wlp3s0 with your wifi device name | |
ip link set wlp3s0 down | |
#restart wpa_supplicant | |
systemctl reenable wpa_supplicant | |
systemctl restart wpa_supplicant | |
#reenable netctl | |
systemctl reenable netctl | |
systemctl restart netctl | |
#reenable netctl profile , replace home with your netctl profile name | |
netctl reenable home | |
netctl restart home | |
## In some wired cases , the IP gets assigned and reassigned, dynamically updating the IP address. | |
#This was fixed by a simple dhcpcd restart | |
systemctl reenable dhcpcd | |
systemctl restart dhcpcd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment