diff options
Diffstat (limited to 'contrib/package')
10 files changed, 18 insertions, 19 deletions
diff --git a/contrib/package/community-profiles/files/etc/config/profile_berlin b/contrib/package/community-profiles/files/etc/config/profile_berlin index 7fff870d41..1bfc8ed7d7 100644 --- a/contrib/package/community-profiles/files/etc/config/profile_berlin +++ b/contrib/package/community-profiles/files/etc/config/profile_berlin @@ -8,6 +8,7 @@ config 'community' 'profile' option 'splash_prefix' '27' option 'latitude' '52.52075' option 'longitude' '13.40948' + option 'owm_api' 'http://util.berlin.freifunk.net' config 'defaults' 'wifi_device' option 'channel' '13' diff --git a/contrib/package/freifunk-common/Makefile b/contrib/package/freifunk-common/Makefile index c15f02dcf6..d9bbd994a1 100644 --- a/contrib/package/freifunk-common/Makefile +++ b/contrib/package/freifunk-common/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=freifunk-common -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) diff --git a/contrib/package/freifunk-common/files/usr/bin/neigh.sh b/contrib/package/freifunk-common/files/usr/bin/neigh.sh index b1dc01a77e..468ed7a3e0 100755 --- a/contrib/package/freifunk-common/files/usr/bin/neigh.sh +++ b/contrib/package/freifunk-common/files/usr/bin/neigh.sh @@ -66,7 +66,8 @@ VARS="$VARS neighborLinkQuality:NLQ linkCost:Cost remoteHostname:Host" for HOST in '127.0.0.1' '::1';do json_init - json_load "$(echo /links|nc ${HOST} 9090)" + json_load "$( echo /links | nc $HOST 9090 | sed -n '/^[}{ ]/p' )" # remove header/non-json + if json_is_a links array;then json_select links for v in ${VARS};do diff --git a/contrib/package/meshwizard/Makefile b/contrib/package/meshwizard/Makefile index b4baab7fa4..9ac5a06286 100644 --- a/contrib/package/meshwizard/Makefile +++ b/contrib/package/meshwizard/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=meshwizard -PKG_RELEASE:=0.3.1 +PKG_RELEASE:=0.3.2 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/gen_auto-ipv6-dhcpv6-ip.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/gen_auto-ipv6-dhcpv6-ip.sh index ca623dbcab..9eca11b414 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/gen_auto-ipv6-dhcpv6-ip.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/gen_auto-ipv6-dhcpv6-ip.sh @@ -1,15 +1,15 @@ #!/bin/sh netrenamed=$1 -local PREFIX="$(echo $ipv6_prefix| cut -d "/" -f 1| sed 's/::/:/')" +PREFIX="$(echo $ipv6_prefix| cut -d "/" -f 1| sed 's/::/:/')" # Get the devices mac address -local device="$(uci -p/var/state -q get network.$1.ifname)" +device="$(uci -p/var/state -q get network.$1.ifname)" if [ -n "$device" ]; then - local MAC="$(ifconfig $netrenamed |grep HWaddr | awk '{ print $5 '})" + MAC="$(ifconfig $netrenamed |grep HWaddr | awk '{ print $5 '})" else - local MAC="$(cat /sys/class/net/$1/address)" - local IPV6_UNIQ="$(echo $MAC | awk -F: '{ print $1$2":"$3$4":"$5$6 }')" + MAC="$(cat /sys/class/net/$1/address)" + IPV6_UNIQ="$(echo $MAC | awk -F: '{ print $1$2":"$3$4":"$5$6 }')" fi echo "${PREFIX}${IPV6_UNIQ}:1" diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_lan_ipv6.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_lan_ipv6.sh index 2f6144b67f..1b4f9b16fa 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_lan_ipv6.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_lan_ipv6.sh @@ -7,10 +7,10 @@ # Setup IPv6 for the lan interface -local ip6addr="" +ip6addr="" if [ "$ipv6_config" = "auto-ipv6-dhcpv6" ]; then # get lan mac - local device="$(uci -p/var/state -q get network.lan.ifname)" + device="$(uci -p/var/state -q get network.lan.ifname)" if [ -n "device" ]; then ip6addr="$($dir/helpers/gen_auto-ipv6-dhcpv6-ip.sh $device)" fi diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_network.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_network.sh index 7035e7fb4b..3ad977e265 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_network.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_network.sh @@ -32,7 +32,6 @@ if [ "$netrenamed" = "lan" ]; then fi # Setup IPv6 for the interface -local ip6addr if [ "$ipv6_enabled" = 1 ]; then if [ "$ipv6_config" = "auto-ipv6-dhcpv6" ]; then ip6addr="$($dir/helpers/gen_auto-ipv6-dhcpv6-ip.sh $netrenamed)" @@ -82,8 +81,6 @@ if [ "$net_dhcp" == 1 ]; then if [ "$supports_vap" = 1 -a "$vap" = 1 -a "$ahdhcp_when_vap" = 1 ]; then # VAPs are enabled for this interface, supported and we want to # also use DHCP on the adhoc interface - local network - local mask network=${dhcprange%%/*} mask=${dhcprange##*/} # Divide network size by adding 1 to the netmask diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh index d212ca4722..01a93874ab 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd.sh @@ -4,7 +4,7 @@ . /lib/functions.sh . $dir/functions.sh -local protocols="4" +protocols="4" if [ "$ipv6_enabled" = 1 ] && [ "$has_ipv6" == "1" ]; then protocols="4 6" fi diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd_interface.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd_interface.sh index 8f21893a99..59f99bd0a1 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd_interface.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_olsrd_interface.sh @@ -7,7 +7,7 @@ net=$1 . /lib/functions.sh . $dir/functions.sh -local protocols="4" +protocols="4" if [ "$ipv6_enabled" = 1 ] && [ "$has_ipv6" == "1" ]; then protocols="4 6" fi @@ -61,9 +61,9 @@ for proto in $protocols; do # Set Hna entry for ipv6 net for static ipv6 config uci -q delete $cfg.${netrenamed}static if [ "$ipv6_config" = "static" ]; then - local v6range="$(uci -q get meshwizard.netconfig.$net\_ip6addr)" - local v6net="$(echo $v6range | cut -d '/' -f 1)" - local v6mask="$(echo $v6range | cut -d '/' -f 2)" + v6range="$(uci -q get meshwizard.netconfig.$net\_ip6addr)" + v6net="$(echo $v6range | cut -d '/' -f 1)" + v6mask="$(echo $v6range | cut -d '/' -f 2)" if [ -n "$v6net" ] && [ -n "$v6mask" ]; then uci set $cfg.${netrenamed}static="Hna6" uci set $cfg.${netrenamed}static.netaddr="$v6net" diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh index 372148997c..450473868e 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh @@ -42,7 +42,7 @@ community="$(uci -q get meshwizard.community.name || uci -q get freifunk.communi export community="$community" # we need a list of widgets later on. It will be populated in read_defaults.sh -local widgets="" +widgets="" # Get a list of networks we need to setup networks=$(uci show meshwizard.netconfig | grep -v "netconfig=" | sed -e 's/meshwizard.netconfig\.\(.*\)\_.*/\1/' |sort|uniq) |