hypriot / device-init

Initialize a device on boot with user defined configuration
MIT License
70 stars 17 forks source link

Add ethernet interface support #42

Closed wynro closed 7 years ago

wynro commented 7 years ago

Title.

Currently it only supports static ip (maybe I could add DHCP?) Also, you need to put all the information of the interface, when actually only address, gateway and one of network, netmask or broadcast is necessary.

I'm not sure about copyright, so if I have to add any kind of notice, don't hesitate to ask.

Also, I use some functions/variables that are in wifi_set.go. I'm not sure about Go style, but I guess I should refactorize them to an external common file?

wynro commented 7 years ago

I have just realized that @dmednis has the same at #40. I'll just close this one.