Merge pull request #325 from chris5560/master-app-ddns
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 28 Feb 2015 12:25:57 +0000 (13:25 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 28 Feb 2015 12:25:57 +0000 (13:25 +0100)
luci-app-ddns: update to version 2.2.0-1

applications/luci-app-olsr-services/luasrc/view/freifunk-services/services.htm
applications/luci-app-splash/root/usr/sbin/luci-splash
contrib/package/community-profiles/files/etc/config/profile_aachen [deleted file]
contrib/package/community-profiles/files/etc/config/profile_augsburg
contrib/package/community-profiles/files/etc/config/profile_demo
contrib/package/community-profiles/files/etc/config/profile_neuss [deleted file]
contrib/package/freifunk-common/files/etc/config/freifunk
contrib/package/meshwizard/Makefile
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm

index 7142c77..0e59c61 100644 (file)
@@ -93,9 +93,9 @@ if luci.http.formvalue("status") == "1" then
        local rv = {}
        for k, line in ipairs(services) do
                local field = utl.split(line, "[#|]", split, true)
-               local origin_lnk = ip.IPv6(pcdata(field[4])) or ""
+               local origin_lnk = ip.IPv6(pcdata(field[4]))
                local origin_link = ""
-               if #origin_lnk ~= 0 and origin_lnk:is6() then
+               if origin_lnk and origin_lnk:is6() then
                        origin_link = "["..origin_lnk:string().."]"
                else
                        origin_link = pcdata(field[4])
@@ -168,9 +168,9 @@ end
                        local field = {}
                        -- split line at # and |, 1=url, 2=proto, 3=description, 4=source
                        local field = utl.split(line, "[#|]", split, true)
-                       local origin_lnk = ip.IPv6(pcdata(field[4])) or ""
+                       local origin_lnk = ip.IPv6(pcdata(field[4]))
                        local origin_link
-                       if #origin_lnk ~= 0 and origin_lnk:is6() then
+                       if origin_lnk and origin_lnk:is6() then
                                origin_link = "["..origin_lnk:string().."]"
                        else
                                origin_link = pcdata(field[4])
index e566e9b..2870dbe 100755 (executable)
@@ -7,6 +7,7 @@ ipc = require "luci.ip"
 
 -- Init state session
 local uci = require "luci.model.uci".cursor_state()
+local ipt = require "luci.sys.iptparser".IptParser()
 local fs = require "nixio.fs"
 local ip = require "luci.ip"
 
@@ -137,27 +138,33 @@ function ipvalid(ipaddr)
 end
 
 function mac_to_ip(mac)
+       local ipaddr = nil
        ipc.neighbors({ family = 4 }, function(n)
                if n.mac == mac and n.dest then
-                       return n.dest:string()
+                       ipaddr = n.dest:string()
                end
        end)
+       return ipaddr
 end
 
 function mac_to_dev(mac)
+       local dev = nil
        ipc.neighbors({ family = 4 }, function(n)
                if n.mac == mac and n.dev then
-                       return n.dev
+                       dev = n.dev
                end
        end)
+       return dev
 end
 
 function ip_to_mac(ip)
+       local mac = nil
        ipc.neighbors({ family = 4 }, function(n)
                if n.mac and n.dest and n.dest:equal(ip) then
-                       return n.mac
+                       mac = n.mac
                end
        end)
+       return mac
 end
 
 function main(argv)
diff --git a/contrib/package/community-profiles/files/etc/config/profile_aachen b/contrib/package/community-profiles/files/etc/config/profile_aachen
deleted file mode 100644 (file)
index cc643e1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-config 'community' 'profile'
-       option 'name' 'Aachen'
-       option 'homepage' 'http://aachen.freifunk.net'
-       option 'ssid' 'aachen.freifunk.net'
-       option 'suffix' 'ffac'
-       option 'latitude' '50.77900'
-       option 'longitude' '6.05399'
-       option 'mesh_network' '10.90.0.0/16'
-       option 'splash_network' '10.104.0.0/16'
-       option 'splash_prefix' '28'
index 0bbafca..4434b0f 100644 (file)
@@ -13,10 +13,7 @@ config 'community' 'profile'
        option 'ipv6' '1'
        option 'ipv6_config' 'auto-ipv6-fromv4'
        option 'ipv6_prefix' 'fdca:ffee:ffa::/48'
-       option 'extrapackages' 'luci-app-owm luci-app-owm-ant luci-app-owm-cmd luci-app-owm-gui'
-       list 'owm_api' 'http://api.openwifimap.net'
-       list 'owm_api' 'http://owmapi.pberg.freifunk.net'
-       option 'mapserver' 'http://openwifimap.net/'
+       #option 'extrapackages' ''
 
 config 'defaults' 'interface'
        option 'netmask' '255.255.192.0'
index d322349..c11a74f 100644 (file)
@@ -11,10 +11,7 @@ config 'community' 'profile'
        option 'ipv6' '1'
        option 'ipv6_config' 'auto-ipv6-fromv4'
        option 'ipv6_prefix' 'fdca:ffff:ffff::/48'
-       option 'extrapackages' 'luci-app-owm luci-app-owm-ant luci-app-owm-cmd luci-app-owm-gui'
-       list 'owm_api' 'http://api.openwifimap.net'
-       list 'owm_api' 'http://owmapi.pberg.freifunk.net'
-       option 'mapserver' 'http://openwifimap.net/'
+       #option 'extrapackages' ''
 
 config 'defaults' 'interface'
        option 'netmask' '255.255.255.0'
diff --git a/contrib/package/community-profiles/files/etc/config/profile_neuss b/contrib/package/community-profiles/files/etc/config/profile_neuss
deleted file mode 100644 (file)
index 8e30617..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-config 'community' 'profile'
-       option 'name' 'Freifunk Neuss'
-       option 'homepage' 'http://neuss.freifunk.net'
-       option 'ssid' 'neuss.freifunk.net'
-       option 'mesh_network' '172.28.0.0/16'
-       option 'splash_network' '10.104.0.0/16'
-       option 'splash_prefix' '27'
-       option 'latitude' '51.19045'
-       option 'longitude' '6.69471'
-
-config 'defaults' 'wifi_device'
-       option 'channel' '11'
-
-config 'defaults' 'wifi_iface'
-       option 'bssid' 'DE:AD:BE:EF:CA:FE'
index c55fe0a..9a46f05 100644 (file)
@@ -96,17 +96,19 @@ config 'defaults' 'wifi_device'
        option 'diversity' '1'
        option 'disabled' '0'
        option 'country' 'DE'
-       option 'hwmode' '11g'
        option 'distance' '1000'
 
 config 'defaults' 'wifi_iface'
        option 'mode' 'adhoc'
        option 'encryption' 'none'
-       option 'bgscan' '0'
        option 'bssid' '12:CA:FF:EE:BA:BE'
+       option 'mcast_rate' '6000'
+
+config 'defaults' 'madwifi_wifi_iface'
+        option 'bgscan' '0'
        option 'sw_merge' '1'
-       option 'mcast_rate' '5500'
-       option 'probereq' '1'
+        option 'probereq' '1'
+        option 'mcast_rate' '5500'
 
 config 'defaults' 'interface'
        option 'netmask' '255.255.0.0'
index 45d5f21..9d74fe5 100644 (file)
@@ -4,7 +4,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=meshwizard
-PKG_RELEASE:=0.1.0
+PKG_RELEASE:=0.1.1
 
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 
index 707b7b7..41feb86 100755 (executable)
@@ -59,6 +59,11 @@ uci set wireless.$net\_iface=wifi-iface
 # create new wifi-iface for $net from defaults
 set_defaults "wifi_iface_" wireless.$net\_iface
 
+# overwrite some settings for type atheros (madwifi)
+if [ "$type" = "atheros" ]; then
+       set_defaults "madwifi_wifi_iface_" wireless.${net}
+fi
+
 # overwrite defaults
 bssid="$($dir/helpers/gen_bssid.sh $channel $community)"
 
index fff8b2f..dd619b3 100644 (file)
@@ -17,6 +17,7 @@ m = Map("wireless", "",
 
 m:chain("network")
 m:chain("firewall")
+m.redirect = luci.dispatcher.build_url("admin/network/wireless")
 
 local ifsection
 
index d74916a..20a41be 100644 (file)
@@ -10,6 +10,7 @@
        local util = require "luci.util"
        local http = require "luci.http"
        local disp = require "luci.dispatcher"
+       local version = require "luci.version"
 
        local sysinfo = util.ubus("system", "info") or { }
        local loadinfo = sysinfo.load or { 0, 0, 0 }
                        <%end%>
                </div>
                <div class="header_right">
-                       <%=luci.version.distversion%><br />
+                       <%=version.distversion%><br />
                        <%:Load%>: <%="%.2f" % (loadinfo[1] / 65535.0)%> <%="%.2f" % (loadinfo[2] / 65535.0)%> <%="%.2f" % (loadinfo[3] / 65535.0)%><br />
                        <%:Hostname%>: <%=boardinfo.hostname or "?"%><br />
                        <span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">