interface: fix restart after reload with external devices
authorFelix Fietkau <nbd@openwrt.org>
Thu, 24 Jul 2014 09:12:48 +0000 (11:12 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 24 Jul 2014 09:12:50 +0000 (11:12 +0200)
commit5844d3caa26f5f8810476836a8b711107e4ba8d7
tree2debeb439e416f30b04bb59773e181e811ecd398
parent81b14db5ca47ae44efc5ccb982f16597873ab4ba
interface: fix restart after reload with external devices

When an interface goes down, the main_dev is reset to NULL.
Track an externally added device separately to be able to bring it back
up.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface.c
interface.h