-- Create wifi iface
local ifconfig = _strip_internals(uci:get_all("freifunk", "wifi_iface"))
ifconfig.device = device
+ ifconfig.network = device
uci:section("wireless", "wifi-iface", nil, ifconfig)
-- Save wifi
-- Crate network interface
local netconfig = _strip_internals(uci:get_all("freifunk", "interface"))
+ netconfig.proto = "static"
netconfig.ipaddr = ip
uci:section("network", "interface", device, netconfig)