summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2024-09-20 00:30:20 +0500
committerAnton Bobov <anton@bobov.name>2024-09-20 00:33:52 +0500
commit7d073a7bddfb2829d7a7cd8e7730efa06a8731a9 (patch)
treee418ff4581099600a760b27fa1153499c302a1ee
parent8b1f9edca3aac2d61b357eca7b29b8dc2adf0998 (diff)
Add Thinkpad dock network fix script
-rwxr-xr-xfix-network9
1 files changed, 9 insertions, 0 deletions
diff --git a/fix-network b/fix-network
new file mode 100755
index 0000000..4a33810
--- /dev/null
+++ b/fix-network
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+# Thinkpad Dock station ethernet card has issue with dropping network
+# connection. Reloading module helps.
+
+set -euo pipefail
+
+MODULE=r8152
+
+sudo rmmod $MODULE && sudo modprobe $MODULE