2 LuCI - Lua Configuration Interface
4 Copyright 2009 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
15 local cursor = require "luci.model.uci".cursor()
16 local nw = require "luci.model.network"
19 f = Form("wandev", "Internet Device")
20 l = f:field(ListValue, "device", "Gerät")
21 l:value("ethernet:eth0", "Ethernet / Cable / DSL (eth0)")
22 l:value("none", "No Internet Connection")
24 function f.handle(self, state, data)
25 if state == FORM_VALID then