2016-03-15 15:14:37 +01:00
|
|
|
#!/bin/sh
|
2016-10-14 09:40:07 +02:00
|
|
|
localIp='192.168.2.10/24'
|
|
|
|
localBroadcast='192.168.2.255'
|
2016-03-15 15:14:37 +01:00
|
|
|
netAdp=$1
|
2016-10-14 09:40:07 +02:00
|
|
|
jollaIp='192.168.2.15'
|
2016-03-15 15:14:37 +01:00
|
|
|
|
|
|
|
sudo ip addr add $localIp broadcast $localBroadcast dev $netAdp
|
|
|
|
sudo ip route add default via $jollaIp dev $netAdp onlink
|