This pull request fixes bridging again, to account for the fact that netifd now seems to send events when an interface is physically plugged or unplugged. Incidentally, this makes it so in the default 'auto' mode, the ethernet interface will attempt to detect whether it is a gateway every time the interface is plugged in, not just when the node is booted.
Also contains some much needed some much-needed cleanup of egregious indentation in the protocol handler script.
This pull request fixes bridging again, to account for the fact that netifd now seems to send events when an interface is physically plugged or unplugged. Incidentally, this makes it so in the default 'auto' mode, the ethernet interface will attempt to detect whether it is a gateway every time the interface is plugged in, not just when the node is booted.
Also contains some much needed some much-needed cleanup of egregious indentation in the protocol handler script.