hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

Set static IP for eth0 #93

Closed henriklied closed 6 years ago

henriklied commented 7 years ago

I see there's a setting for connecting to a specified WLAN, but is there also a way to set a static IP adress for eth0?

StefanScherer commented 7 years ago

No. All these features lead to extending device-init with more and more tests involved. At the moment we don't have the time to enhance this. Maybe we should look at cloud-init which is able to do more things.

StefanScherer commented 6 years ago

We've switch to cloud-init with HypriotOS 1.7.x so you should be able to provide a --userdata my-user-data file. Have a look at http://cloudinit.readthedocs.io/en/0.7.9/index.html if this is possible with cloud-init / cloud-config. The flash script only provides the option to copy the user-data file into the boot section.