Commit 8db51f2e authored by Carl Hetherington's avatar Carl Hetherington

Cope with network device name changing.

parent d674ed11
#!/bin/bash
#snap interface to the lego mindstorms robot installation
sudo ifconfig enp0s26u1u4 10.42.0.1 up
device=$(cat /proc/net/dev | grep enp0 | awk '{print $1}' | sed -e "s/://g")
sudo ifconfig $device 10.42.0.1 up
python snap-ev3.py
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment