aboutsummaryrefslogtreecommitdiff
path: root/usb-tether.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usb-tether.sh')
-rwxr-xr-xusb-tether.sh13
1 files changed, 0 insertions, 13 deletions
diff --git a/usb-tether.sh b/usb-tether.sh
deleted file mode 100755
index bbe16ed..0000000
--- a/usb-tether.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-IFACE=$(ip -br a | grep 'enx' | awk '{print $1}')
-
-sudo ip link set "$IFACE" up
-sudo dhcpcd "$IFACE"
-
-GATEWAY=$(ip route | grep "$IFACE" | awk '/default/ {print $3}')
-
-sudo ip route del default
-sudo ip route add default via "$GATEWAY" dev "$IFACE"
-
-echo "USB tethering active on $IFACE"
-