# Version == major.minor.patch
# increase on new functionality (minor) or patches (patch)
-PKG_VERSION:=2.2.4
+PKG_VERSION:=2.3.1
# Release == build
# increase on changes of translation files
$(PKG_MAINTAINER)
endef
-include $(TOPDIR)/feeds/luci/luci.mk
+include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature
local srv_ver_cmd = [[/usr/lib/ddns/dynamic_dns_updater.sh --version | awk {'print $2'}]]
local app_name = "luci-app-ddns"
local app_title = "Dynamic DNS"
-local app_version = "2.3.0-1"
+local app_version = "2.3.1-1"
function index()
local nxfs = require "nixio.fs" -- global definitions not available
return -- so data is missing
end
end
- -- for whatever reason errtxt set and not handled above
- assert( not (errtxt and (#errtxt > 0)), "unhandled validate error" )
-- lets continue with value returned from validate
eq_cfg = ( vvalue == cvalue ) -- update equal_config flag
$(PKG_MAINTAINER)
endef
-include $(TOPDIR)/feeds/luci/luci.mk
+include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature
$(PKG_MAINTAINER)
endef
-include $(TOPDIR)/feeds/luci/luci.mk
+include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature
option 'splash_network' '10.104.0.0/16'
option 'splash_prefix' '27'
option 'latitude' '51.757689'
- option 'longitude' '13.40948'
-
+ option 'longitude' '13.40948'
+
config 'defaults' 'wifi_device'
option 'channel' '13'
-
+
config 'defaults' 'wifi_device_5'
option 'channel' '36'
config 'defaults' 'bssidscheme'
option '13' 'D2:CA:FF:EE:BA:BE'
option '36' '02:36:CA:FF:EE:EE'
-
+
config 'defaults' 'ssidscheme'
option '13' 'intern-ch13.cottbus.freifunk.net'
option '36' 'intern-ch36.cottbus.freifunk.net'
-
+
config 'defaults' 'interface'
option 'netmask' '255.255.255.255'
option 'dns' '85.214.20.141 213.73.91.35 194.150.168.168 2001:4ce8::53 2001:910:800::12'
-
+
config 'dhcp' 'dhcp'
option 'leasetime' '5m'
config 'community' 'profile'
option 'name' 'Freifunk Halle'
- option 'homepage' 'http://freifunk-halle.net'
+ option 'homepage' 'http://freifunk-halle.org'
option 'ssid' 'halle.freifunk.net'
- option 'mesh_network' '104.62.0.0/16'
- option 'splash_network' '10.104.0.0/16'
+ option 'mesh_network' '10.62.0.0/16'
+ option 'splash_network' '6.0.0.0/8'
option 'splash_prefix' '27'
option 'latitude' '51.47911'
option 'longitude' '11.96901'
+ option 'adhoc_dhcp_when_vap' '0'
+ option 'suffix' 'ffhal'
+ option 'vap' '1'
+ option 'batman' '1'
config 'defaults' 'wifi_device'
option 'channel' '13'
config 'defaults' 'bssidscheme'
option 'all' '02:CA:FF:EE:BA:BE'
+config 'defaults' 'luci_splash'
+ option 'redirect_url' 'http://freifunk-halle.org/willkommen.php'
+
config 'defaults' 'interface'
- option 'netmask' '255.0.0.0'
+ option 'netmask' '255.255.255.255'
+
+config 'defaults' 'wifi_iface'
+ option 'mcast_rate' '6000'
+
+config 'defaults' 'dhcp'
+ option 'leasetime' '5m'
config 'defaults' 'olsrd'
option 'AllowNoInt' 'yes'
option 'MidValidityTime' '375.0'
option 'HnaInterval' '25.0'
option 'HnaValidityTime' '375.0'
+
+config widget 'rsshalle'
+ option cache '3600'
+ option width '50%'
+ option title 'neuste Foreneinträge in Halle'
+ option template 'rssfeed'
+ option enabled '1'
+ option max '5'
+ option url 'http://www.freifunk-halle.org/rss.php'
+
+config widget 'rssbundesweit'
+ option cache '3600'
+ option width '50%'
+ option title 'bundesweiter Freifunk Blog'
+ option template 'rssfeed'
+ option enabled '1'
+ option max '10'
+ option url 'http://blog.freifunk.net/rss.xml'
}
-disable_dyngw() {
- for cfg in $cfgs; do
- local dyngwlib=`uci show $cfg |grep dyn_gw.so |awk {' FS="."; print $1"."$2 '}`
- if [ -n "$dyngwlib" ]; then
- uci set $dyngwlib.ignore=1
- uci commit $cfg
- fi
-
- dyngwplainlib=`uci show $cfg |grep dyn_gw_plain |awk {' FS="."; print $1"."$2 '}`
- if [ -n "$dyngwplainlib" ]; then
- rttable="$(uci -q get $dyngwplainlib.RtTable)"
- if [ -z "$rttable" ] || [ "$rttable" = "254" ]; then
- uci set $dyngwplainlib.ignore=1
- uci commit $cfg
+handle_disable_dyngw() {
+ local cfg="$1"
+ local olsrd_cfg="$2"
+ config_get library "$cfg" library
+ case "$library" in
+ olsrd_dyn_gw_plain*)
+ config_get RtTable "$cfg" RtTable
+ if [ -z "$RtTable" ] || [ "$RtTable" = "254" ]; then
+ config_set "$cfg" ignore '1'
+ uci set $olsrd_cfg.$cfg.ignore="1"
+ uci commit $olsrd_cfg
+ logger -s -t policyrouting -p info "dyngw_plain plugin disabled."
fi
- fi
+ ;;
+ olsrd_dyn_gw.so*)
+ logger -s -t policyrouting -p info "$cfg"
+ uci set $olsrd_cfg.$cfg.ignore="1"
+ uci commit $olsrd_cfg
+ logger -s -t policyrouting -p info "dyngw plugin disabled."
+ ;;
+ esac
+}
+
+disable_dyngw() {
+ for olsrd_cfg in $cfgs; do
+ config_load $olsrd_cfg
+ config_foreach handle_disable_dyngw LoadPlugin $olsrd_cfg
done
}
end
if track.setuser then
- -- trigger ubus connection before dropping root privs
- util.ubus()
-
sys.process.setuser(track.setuser)
end
--- /dev/null
+{
+ "user": "nobody",
+ "access": {
+ "system": {
+ "methods": [ "board", "info" ]
+ }
+ }
+}
found_sta.channel, table.concat(found_sta.names, ", "))
else
ch = s:taboption("general", Value, "_mode_freq", '<br />'..translate("Operating frequency"))
- ch.hwmodes = iw.hwmodelist
+ ch.hwmodes = hw_modes
ch.freqlist = iw.freqlist
ch.template = "cbi/wireless_modefreq"
function ch.formvalue(self, section)
return {
- m:formvalue(self:cbid(section) .. ".band") or (iw.hwmodelist.g and "11g" or "11a"),
+ m:formvalue(self:cbid(section) .. ".band") or (hw_modes.g and "11g" or "11a"),
m:formvalue(self:cbid(section) .. ".channel") or "auto",
m:formvalue(self:cbid(section) .. ".htmode") or ""
}
translate("DS-Lite AFTR address"))
peeraddr.rmempty = false
-peeraddr.datatype = "ip6addr"
+peeraddr.datatype = "or(hostname,ip6addr)"
ip6addr = section:taboption("general", Value, "ip6addr",
translate("Local IPv6 address"),