Hi Justin,
By default, nerves doesn't help with IP setup. This is something that
I've wanted to address, but just haven't had time. If you want to just
assign an IP address, you can do something like:
os:cmd("/sbin/ip link set eth0 up"),
os:cmd("/sbin/ip addr add
192.168.1.40/24 dev eth0"),
os:cmd("/sbin/ip route add default via 192.168.1.1"),
If you use Elixir, I have some work-in-progress code that may be of
interest. (I haven't had time this past month to work on it, but there
might be something helpful in it.) See the following repositories:
https://github.com/fhunleth/net_basic.ex
https://github.com/fhunleth/wpa_supplicant.ex
Hope this helps,
Frank
> --
> You received this message because you are subscribed to the Google Groups
> "nerves-project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
nerves-projec...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Frank Hunleth
Troodon Software LLC
Embedded Software Development
http://troodon-software.com/