X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=device.c;h=7d606c6e5782108444308a6777e3f13f48ed6b45;hb=38c29e0bccabca0956498814729b2177b27e48a9;hp=f484c289e2c47311e272e408f63c555d2f835d03;hpb=98ca67469da70accd710b14c28e77be2126170a8;p=project%2Fnetifd.git diff --git a/device.c b/device.c index f484c28..7d606c6 100644 --- a/device.c +++ b/device.c @@ -61,6 +61,9 @@ void device_unlock(void) static int set_device_state(struct device *dev, bool state) { + if (dev->external) + return 0; + if (state) system_if_up(dev); else