aboutsummaryrefslogtreecommitdiffstats
path: root/reset_x201_wifi_controller.sh
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-01-10 12:13:54 +0000
committerMatthew Lemon <y@yulqen.org>2023-01-10 12:13:54 +0000
commitdc27ebf0b38c0ae27894ccb7c306317bea87bd86 (patch)
tree49390be0f1027cf5183fc98ed0e80fe5446da955 /reset_x201_wifi_controller.sh
parentcd148eb7d5d283e8f104289439c097b0b0d357f1 (diff)
added script to reset Centrino wifi controller on x201
Diffstat (limited to 'reset_x201_wifi_controller.sh')
-rw-r--r--reset_x201_wifi_controller.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/reset_x201_wifi_controller.sh b/reset_x201_wifi_controller.sh
new file mode 100644
index 0000000..4884c43
--- /dev/null
+++ b/reset_x201_wifi_controller.sh
@@ -0,0 +1,6 @@
+sudo echo "1" > /sys/bus/pci/devices/0000:02:00.0/remove # remove pci device, you might have to change the 03:00.0 part to yours
+sleep 3
+sudo echo "1" > /sys/bus/pci/rescan # rescan for devices
+
+# find pci device reference with lspci | grep Centrino
+