From d2f67a67a93db11d302f2515772f33647d833ed8 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 15 Mar 2016 15:14:37 +0100 Subject: [PATCH] Tiny script to connect to jolla with usb tethering --- jolla_usb_tethering.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 jolla_usb_tethering.sh diff --git a/jolla_usb_tethering.sh b/jolla_usb_tethering.sh new file mode 100755 index 0000000..d6b2bc2 --- /dev/null +++ b/jolla_usb_tethering.sh @@ -0,0 +1,8 @@ +#!/bin/sh +localIp='192.168.1.10/24' +localBroadcast='192.168.1.255' +netAdp=$1 +jollaIp='192.168.1.15' + +sudo ip addr add $localIp broadcast $localBroadcast dev $netAdp +sudo ip route add default via $jollaIp dev $netAdp onlink