[package] fix update_url option handling (#6127), bump release number

git-svn-id: svn://svn.openwrt.org/openwrt/packages@19009 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2010-01-02 16:30:29 +00:00
parent 965e5a87fa
commit 3bc24e769e
2 changed files with 13 additions and 10 deletions

View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ddns-scripts
PKG_VERSION:=1.0.0
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

View File

@ -248,10 +248,13 @@ do
final_url=$update_url
for option_var in $ALL_OPTION_VARIABLES
do
if [ "$option_var" != "update_url" ]
then
replace_name=$(echo "\[$option_var\]" | tr 'a-z' 'A-Z')
replace_value=$(eval echo "\$$option_var")
replace_value=$(echo $replace_value | sed -f /usr/lib/ddns/url_escape.sed)
final_url=$(echo $final_url | sed s^"$replace_name"^"$replace_value"^g )
fi
done
final_url=$(echo $final_url | sed s/"\[IP\]"/"$current_ip"/g )