X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8570a82f7c494d4da9063235227a72103dfa989a..fcb2538f2b451558abc10a18fa0c509f3f31cb2c:/package/switch/src/switch-robo.c?ds=inline diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c index 045dce1c4..779b89f61 100644 --- a/package/switch/src/switch-robo.c +++ b/package/switch/src/switch-robo.c @@ -528,7 +528,8 @@ static int __init robo_init(void) device = strdup("ethX"); for (device[3] = '0'; (device[3] <= '3') && notfound; device[3]++) { - notfound = robo_probe(device); + if (! switch_device_registered (device)) + notfound = robo_probe(device); } device[3]--;