[packages] radvd: use "::/64" placeholder for empty prefixes in interface sections (#8788)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@25424 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-02-08 17:30:56 +00:00
parent 2fd4a81f54
commit 500c9dc699
2 changed files with 2 additions and 6 deletions

View File

@ -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 \

View File

@ -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"