diff --git a/Makefile b/Makefile index 549952f..052039b 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=batmand -PKG_REV:=1249 +PKG_REV:=1267 PKG_VERSION:=r$(PKG_REV) PKG_RELEASE:=1 PKG_EXTRA_CFLAGS=-DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA -DREVISION_VERSION=\"\ rv$(PKG_REV)\" @@ -105,15 +105,15 @@ MAKE_BATGAT_ARGS += \ define Build/Configure endef -ifneq ($(DEVEL_CONFIG)$(CONFIG_PACKAGE_batmand),) +ifneq ($(DEVELOPER)$(CONFIG_PACKAGE_batmand),) BUILD_BATMAND := $(MAKE) -C $(PKG_BUILD_DIR)/batman $(MAKE_BATMAND_ARGS) endif -ifneq ($(CONFIG_DEVEL)$(CONFIG_PACKAGE_vis),) +ifneq ($(DEVELOPER)$(CONFIG_PACKAGE_vis),) BUILD_VIS := $(MAKE) -C $(PKG_BUILD_DIR)/vis $(MAKE_VIS_ARGS) endif -ifneq ($(CONFIG_DEVEL)$(CONFIG_PACKAGE_kmod-batgat),) +ifneq ($(DEVELOPER)$(CONFIG_PACKAGE_kmod-batgat),) BUILD_BATGAT := $(MAKE) -C "$(LINUX_DIR)" $(MAKE_BATGAT_ARGS) endif diff --git a/files/etc/config/batmand b/files/etc/config/batmand index a67fa5d..6d1f3be 100644 --- a/files/etc/config/batmand +++ b/files/etc/config/batmand @@ -1,6 +1,6 @@ config batmand general option interface ath0 - option announce + option hna option gateway_class option originator_interval option preferred_gateway diff --git a/files/etc/init.d/batmand b/files/etc/init.d/batmand index 5da2062..411f025 100644 --- a/files/etc/init.d/batmand +++ b/files/etc/init.d/batmand @@ -8,7 +8,7 @@ start () { echo $1 Error, you must specify at least a network interface exit fi - announce=$(uci get batmand.general.announce) + hnas=$(uci get batmand.general.hna) gateway_class=$(uci get batmand.general.gateway_class) originator_interval=$(uci get batmand.general.originator_interval) preferred_gateway=$(uci get batmand.general.preferred_gateway) @@ -19,9 +19,10 @@ start () { disable_aggregation=$(uci get batmand.general.disable_aggregation) batman_args="" - if [ $announce ]; then - batman_args=${batman_args}'-a '$announce' ' - fi + for hna in $hnas + do + batman_args=${batman_args}'-a '$hna' ' + done if [ $gateway_class ]; then batman_args=${batman_args}'-g '$gateway_class' '