diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-12 16:19:52 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-12 16:19:52 +0200 |
commit | a12a0dcdd1b77a652d488ea3d1074e603bc78965 (patch) | |
tree | 5939e06a87cd0455dcbb3c3bc0c7a70b6e24c78b /interface.c | |
parent | aaa6302c203cf4fecf121f485f0cb0cf9bf067be (diff) |
if an interface is brought down by the proto handler and autostart is still active, restart the interface
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/interface.c b/interface.c index 37b20cc..514b4d5 100644 --- a/interface.c +++ b/interface.c @@ -250,6 +250,8 @@ interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve mark_interface_down(iface); interface_handle_config_change(iface); + if (iface->autostart) + __interface_set_up(iface); break; case IFPEV_LINK_LOST: if (iface->state != IFS_UP) |