irenicus09

FixAlpha.sh

Dec 13th, 2015
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Killing all instance of processes that might interfere with network
  4. systemctl stop NetworkManager.service;
  5. wait;
  6. killall NetworkManager; killall wpa_supplicant; killall dhclient;
  7.  
  8. # Killing Thermald & restarting it to control temperature
  9. killall thermald;
  10. thermald --exclusive-control;
  11. wait;
  12.  
  13. # Removing all known drivers
  14. rmmod ath9k;
  15. rmmod rt2800usb;
  16. wait;
  17.  
  18. # Reloading Alpha driver & Fixing network
  19. modprobe rt2800usb;
  20. wait;
  21. ifconfig wlan0 down; macchanger -r wlan0; ifconfig wlan0 up;
  22. wait;
  23. systemctl daemon-reload;
  24. wait;
  25. systemctl start NetworkManager.service;
  26. wait;
Advertisement
Add Comment
Please, Sign In to add comment