diff options
author | Steven Barth <steven@midlink.org> | 2008-08-13 01:30:32 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-13 01:30:32 +0000 |
commit | a59044df9b87c7e4ce668649726aa2d355206965 (patch) | |
tree | c572cae82164b2f3a9ec7f57daf061251d9b0586 /modules/admin-core | |
parent | 07fdaa87dbac0582960cded4e9aa981d4a141782 (diff) |
Fixed last commit
Diffstat (limited to 'modules/admin-core')
-rw-r--r-- | modules/admin-core/luasrc/tools/webadmin.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/admin-core/luasrc/tools/webadmin.lua b/modules/admin-core/luasrc/tools/webadmin.lua new file mode 100644 index 0000000000..45bd910ac5 --- /dev/null +++ b/modules/admin-core/luasrc/tools/webadmin.lua @@ -0,0 +1,26 @@ +--[[ +LuCI - Lua Configuration Interface + +Copyright 2008 Steven Barth <steven@midlink.org> +Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ +]]-- + +module("luci.tools.webadmin", package.seeall) + +function cbi_add_networks(field) + luci.model.uci.foreach("network", "interface", + function (section) + if section[".name"] ~= "loopback" then + field:value(section[".name"]) + end + end + ) +end
\ No newline at end of file |