Skip to content

Instantly share code, notes, and snippets.

@ConnorRigby
Created January 9, 2017 17:58
Show Gist options
  • Save ConnorRigby/fb68f423e3e6f6656b92937f9fd99725 to your computer and use it in GitHub Desktop.
Save ConnorRigby/fb68f423e3e6f6656b92937f9fd99725 to your computer and use it in GitHub Desktop.
export interface ConfigFileNetIface {
/** false means the interface is brought up, but not started.
* "hostapd" starts in host mode.
* "static" is static ip settings
* "dhcp" is dhcp ip settings
*/
type: IfaceType
default: false | "hostapd" | "static" | "dhcp";
settings: {
/** ip address for static or host mode. */
ipv4_address?: string;
/** subnet mask for static mode */
ipv4_subnet_mask?: string;
/** list of dns name servers. */
nameservers?: string[];
/** if wifi we support no password, or wpa-psk */
key_mgmt?: "NONE" | "WPA-PSK";
/** ssid for wifi */
ssid?: string;
/** psk for wifi */
psk?: string;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment