Tiny script to connect to jolla with usb tethering

This commit is contained in:
Jeremy Gardais 2016-03-15 15:14:37 +01:00
parent 078bc2da93
commit d2f67a67a9
1 changed files with 8 additions and 0 deletions

8
jolla_usb_tethering.sh Executable file
View File

@ -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