MinimSecure / unum-sdk

Unum agent source code, tools, and documentation
https://www.minim.co
Apache License 2.0
30 stars 15 forks source link

Fix broken start on boot in openwrt_generic #48

Closed tyler-sommer closed 5 years ago

tyler-sommer commented 5 years ago

This PR adds a naive backoff and retry when trying and failing to determine the correct LAN interface. This avoids the agent persistently failing to start on boot, or the agent starting and immediately restarting forever in a loop.

This also removes the now-unnecessary Unum-specific UCI config section. I plan to improve the agent init on openwrt_generic in the near future, but am cutting for now for time constraints. See MinimSecure/minim-openwrt-feed#5 for the corresponding changes in the Minim OpenWrt feed.