X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8570a82f7c494d4da9063235227a72103dfa989a..29ec5d802c648afb89dd4f326bc4752f40ad7416:/package/switch/src/switch-robo.c?ds=sidebyside 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]--;