Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fhunleth/net_managers.ex
Use Nerves.InterimWifi for wifi support
https://github.com/fhunleth/net_managers.ex
Last synced: about 1 month ago
JSON representation
Use Nerves.InterimWifi for wifi support
- Host: GitHub
- URL: https://github.com/fhunleth/net_managers.ex
- Owner: fhunleth
- License: apache-2.0
- Created: 2015-02-26T01:45:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-03T15:50:09.000Z (over 8 years ago)
- Last Synced: 2024-10-13T09:56:26.395Z (2 months ago)
- Language: Elixir
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# net_managers.ex
## Building
## Scripts
```
{:ok, nm} = NetManager.start_link
profile = %NetProfile{ifname: "eth0", ipv4_address_method: :static, static_ip: %{ipv4_address: "192.168.25.214", ipv4_subnet_mask: "255.255.255.0"}, static_dns: %{domain: "lkc.com", nameservers: ["8.8.8.8"]}}
{:ok, sm} = StaticEthManager.start_link(nm, profile)```
```
{:ok, nm} = NetManager.start_link
profile = %NetProfile{ifname: "eth0", ipv4_address_method: :dhcp}
{:ok, sm} = DhcpEthManager.start_link(nm, profile)
``````
System.cmd("/usr/sbin/wpa_supplicant", ["-iwlan0", "-C/var/run/wpa_supplicant", "-B"])
{:ok, nm} = NetManager.start_link
profile = %NetProfile{ifname: "wlan0", ipv4_address_method: :dhcp, wlan: %{ssid: "LKC Tech HQ", key_mgmt: :"WPA-PSK", psk: "testtest"}}
{:ok, sm} = WifiManager.start_link(nm, profile)
```
```
System.cmd("/usr/sbin/wpa_supplicant", ["-iwlan0", "-C/var/run/wpa_supplicant", "-B"])
{:ok, nm} = NetManager.start_link
profile = %NetProfile{ifname: "wlan0", ipv4_address_method: :dhcp, wlan: %{ssid: "LKC Tech HQ-guest", key_mgmt: :NONE}}
{:ok, sm} = WifiManager.start_link(nm, profile)
``````
System.cmd("/usr/sbin/wpa_supplicant", ["-iwlan0", "-C/var/run/wpa_supplicant", "-B"])
{:ok, nm} = NetManager.start_link
profile = %NetProfile{ifname: "wlan0", ipv4_address_method: :dhcp, wlan: %{ssid: "coderdojodc-5ghz", key_mgmt: :NONE}}
{:ok, sm} = WifiManager.start_link(nm, profile)
```