fix postmarket devices link
[sxmo-sms-ssh] / pm-net.sh
1 #!/bin/sh -xe
2
3 # postmarketos network setup
4
5 dev=$( ip link | grep enx | cut -d: -f2 )
6 echo "## Using $dev"
7 sudo ifconfig $dev 172.16.42.2 netmask 255.255.255.0 up
8 ping -c 3 172.16.42.1 && ssh user@172.16.42.1