summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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