From 9b4b062fa8147034a99cb0b18de146356a49f85e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 8 Feb 2011 17:30:56 +0000 Subject: [PATCH] [packages] radvd: use "::/64" placeholder for empty prefixes in interface sections (#8788) SVN-Revision: 25424 --- ipv6/radvd/Makefile | 2 +- ipv6/radvd/files/radvd.init | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ipv6/radvd/Makefile b/ipv6/radvd/Makefile index ee95baba45..a2ec0bc0fc 100644 --- a/ipv6/radvd/Makefile +++ b/ipv6/radvd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=radvd PKG_VERSION:=1.7 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \ diff --git a/ipv6/radvd/files/radvd.init b/ipv6/radvd/files/radvd.init index dbbe52cc81..08cd791aad 100644 --- a/ipv6/radvd/files/radvd.init +++ b/ipv6/radvd/files/radvd.init @@ -196,11 +196,7 @@ radvd_write_prefix() { done [ "$exist" -eq 0 ] && return 0 - config_get prefixes "$cfg" prefix - if [ -z "$prefixes" ]; then - prefixes=$(get_ip6addr "$IFNAME") || return 0 - fi - + config_get prefixes "$cfg" prefix "::/64" for prefix in $prefixes; do validate_ip6prefix "$prefix" || continue printf '\n\tprefix %s\n\t{\n' "$prefix" -- 2.30.2