Developing lightweight computation at the DSG edge

Commit c5ca9d17 authored by p4u's avatar p4u
Browse files

Smart network configuration ensures it takes into account eth0, in some...

Smart network configuration ensures it takes into account eth0, in some devices (such as pico2) /sys/.../eth0/device file does not exist.
parent 35aea0a5
......@@ -227,7 +227,7 @@ qmp_configure_smart_network() {
}
for dev in $(ls /sys/class/net/); do
[ -e /sys/class/net/$dev/device ] && {
[ -e /sys/class/net/$dev/device ] || [ dev == "eth0" ] && {
local id
local ignore=0
......
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