-
Notifications
You must be signed in to change notification settings - Fork 1
State object
miopa edited this page Dec 29, 2016
·
17 revisions
{
interfaces: {
[name]: {
type: "ethernet" | "wi-fi" | "4g" | "3g", // system generated
mode: String,
enabled: true | false,
config: {},
status: {}
}
}
}
status: {
exists: Boolean, // is the interface visible to the system
configured: Boolean, // is the interface configured with fconf
}
{
networks: {
ethernet: {},
3g-data: {} | 4g-ndis: {},
wifi-ap: {} | wifi-client: {}
}
channels: {
voice-modem: {},
sip: {}
}
}
ethernet: {
interface: String; // "eth0"
static: {}, // required if DHCP is false
dhcp: true | false,
dns-servers: []
}
wifi-client: {
interface: String, // "wlan0"
static: {}, // required if DHCP is false
dhcp: true | false,
dns-servers: [],
ssid: String, // required
password: String // required
}
static: {
ip: [String], // array of ip/mask strings ["xxx.xxx.xxx.xxx/xx"]
gateway: String // not used if dhcp is true
}
wifi-ap: {
interface: String, // default: "wlan0", WIFI_IFACE
hidden: true | false, // default: false, HIDDEN
channel: Number, // default: "default", CHANNEL
ssid: String, // SSID, required
passphrase: String, // PASSPHRASE, required
gateway: String, // default: "192.168.12.1", GATEWAY
share_interface: String, // default: "eth0", INTERNET_IFACE + SHARE_METHOD=nat/none
}