From 54ba93f4bf185887f217a432ead552e9d7349b44 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 1 Oct 2013 21:37:45 +0200 Subject: [PATCH] gluon-mesh-batman-adv: configure batman-adv --- .../0.3.1/010-migrate-batman-adv | 17 ------- .../0.3.2/010-migrate-batman-adv | 5 --- .../0.3.3/010-migrate-batman-adv | 38 ---------------- .../upgrade/mesh-batman-adv/initial/011-mesh | 45 +++++++++++++++++++ 4 files changed, 45 insertions(+), 60 deletions(-) delete mode 100755 package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.1/010-migrate-batman-adv delete mode 100755 package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.2/010-migrate-batman-adv delete mode 100755 package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.3/010-migrate-batman-adv create mode 100755 package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/initial/011-mesh diff --git a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.1/010-migrate-batman-adv b/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.1/010-migrate-batman-adv deleted file mode 100755 index 46f297f7..00000000 --- a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.1/010-migrate-batman-adv +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -local interfaces='' -local interfaces_old="$(uci get batman-adv.bat0.interfaces)" - -for interface in $interfaces_old; do - if [ $interface != br-wan ]; then interfaces="${interfaces:+${interfaces} }$interface"; fi -done - -uci set batman-adv.bat0.interfaces="$interfaces" - -old_interval="$(uci -q get batman-adv.bat0.orig_interval)" -if [ -z "$old_interval" -o "$old_interval" = 1000 ]; then - uci set batman-adv.bat0.orig_interval=5000 -fi - -uci commit batman-adv diff --git a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.2/010-migrate-batman-adv b/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.2/010-migrate-batman-adv deleted file mode 100755 index 6275f32a..00000000 --- a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.2/010-migrate-batman-adv +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - - -uci set batman-adv.bat0.interfaces="mesh-vpn $(uci -q get batman-adv.bat0.interfaces)" -uci commit batman-adv diff --git a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.3/010-migrate-batman-adv b/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.3/010-migrate-batman-adv deleted file mode 100755 index ba32c95b..00000000 --- a/package/gluon-mesh-batman-adv/files/lib/gluon/upgrade/mesh-batman-adv/0.3.3/010-migrate-batman-adv +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -. /lib/ar71xx.sh - -local board="$(ar71xx_board_name)" - -uci -q batch <