Repository : ssh://git@open-mesh.org/openwrt-feed-batman-adv
On branch : master
commit 7557f67e64327e30f17d2224ea53dffed483db14 Author: Marek Lindner lindner_marek@yahoo.de Date: Mon Jan 31 02:54:10 2011 +0000
batman-adv-devel: update config/init script to match latest release
7557f67e64327e30f17d2224ea53dffed483db14 batman-adv-devel/Makefile | 2 +- batman-adv-devel/files/etc/config/batman-adv | 9 +++++++-- batman-adv-devel/files/etc/init.d/batman-adv | 26 +++++++++++++++++++++++--- 3 files changed, 31 insertions(+), 6 deletions(-)
diff --git a/batman-adv-devel/Makefile b/batman-adv-devel/Makefile index 24b0e84..f9f1743 100644 --- a/batman-adv-devel/Makefile +++ b/batman-adv-devel/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=batman-adv-devel
-PKG_REV:=1902 +PKG_REV:=1928
PKG_VERSION:=r$(PKG_REV) PKG_SOURCE_PROTO:=svn diff --git a/batman-adv-devel/files/etc/config/batman-adv b/batman-adv-devel/files/etc/config/batman-adv index 886fdb9..9c66c93 100644 --- a/batman-adv-devel/files/etc/config/batman-adv +++ b/batman-adv-devel/files/etc/config/batman-adv @@ -1,8 +1,13 @@
config 'mesh' 'bat0' option 'interfaces' 'wlan0' - option 'orig_interval' - option 'log_level' option 'aggregated_ogms' option 'bonding' + option 'fragmentation' + option 'gw_bandwidth' + option 'gw_mode' + option 'gw_sel_class' + option 'log_level' + option 'orig_interval' option 'vis_mode' + diff --git a/batman-adv-devel/files/etc/init.d/batman-adv b/batman-adv-devel/files/etc/init.d/batman-adv index a08b21e..5011b6d 100644 --- a/batman-adv-devel/files/etc/init.d/batman-adv +++ b/batman-adv-devel/files/etc/init.d/batman-adv @@ -13,16 +13,20 @@ is_module_loaded() {
start_mesh () { local meshif="$1" - local interfaces orig_interval log_level aggregated_ogms bonding vis_mode + local interfaces aggregated_ogms bonding fragmentation gw_bandwidth gw_mode gw_sel_class log_level orig_interval vis_mode
is_module_loaded [ $? -ne 1 ] && return
config_get interfaces "$meshif" interfaces - config_get orig_interval "$meshif" orig_interval - config_get log_level "$meshif" log_level config_get aggregated_ogms "$meshif" aggregated_ogms config_get bonding "$meshif" bonding + config_get fragmentation "$meshif" fragmentation + config_get gw_bandwidth "$meshif" gw_bandwidth + config_get gw_mode "$meshif" gw_mode + config_get gw_sel_class "$meshif" gw_sel_class + config_get log_level "$meshif" log_level + config_get orig_interval "$meshif" orig_interval config_get vis_mode "$meshif" vis_mode
if [ "$interfaces" = "" ]; then @@ -52,6 +56,22 @@ start_mesh () { echo $bonding > /sys/class/net/$meshif/mesh/bonding fi + if [ $fragmentation ]; then + echo $fragmentation > /sys/class/net/$meshif/mesh/fragmentation + fi + + if [ $gw_bandwidth ]; then + echo $gw_bandwidth > /sys/class/net/$meshif/mesh/gw_bandwidth + fi + + if [ $gw_mode ]; then + echo $gw_mode > /sys/class/net/$meshif/mesh/gw_mode + fi + + if [ $gw_sel_class ]; then + echo $gw_sel_class > /sys/class/net/$meshif/mesh/gw_sel_class + fi + if [ $vis_mode ]; then echo $vis_mode > /sys/class/net/$meshif/mesh/vis_mode fi