diff --git a/net/olsrd/Makefile b/net/olsrd/Makefile index 84ed3498f..4f8dc4b34 100644 --- a/net/olsrd/Makefile +++ b/net/olsrd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=olsrd PKG_VERSION:=0.6.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.olsr.org/releases/0.6 diff --git a/net/olsrd/files/olsrd.init b/net/olsrd/files/olsrd.init index 9b0dc02c8..67b5bbf88 100644 --- a/net/olsrd/files/olsrd.init +++ b/net/olsrd/files/olsrd.init @@ -171,6 +171,19 @@ olsrd_write_plparam() { shift value="$*" fi + if [ "$option" = 'NonOlsrIf' ]; then + if validate_varname "$value"; then + if get_ifname "$value"; then + ifname="$IFNAME" + echo "Info: mdns Interface '$value' ifname '$ifname' found" 1>&2 + else + echo "Warning: mdns Interface '$value' not found, skipped" 1>&2 + fi + else + warning_invalid_value olsrd "$cfg" "NonOlsrIf" + fi + [ -z "$ifname" ] || value=$ifname + fi echo -n "${N}${param}PlParam \"$option\" \"$value\""