opentechinstitute / commotiond

The system management daemon for the Commotion Wireless Project.
https://commotionwireless.net
GNU Affero General Public License v3.0
26 stars 21 forks source link

Fix bridge support #131

Closed jheretic closed 9 years ago

jheretic commented 9 years ago

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.