#
-# Copyright (C) 2006-2010 OpenWrt.org
+# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=yaddns
PKG_VERSION:=1.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://download.gna.org/yaddns/
prepare_yaddns_conf ()
{
- . /etc/functions.sh
- include /lib/network
+ . /lib/functions.sh
+ . /lib/functions/network.sh
> $YADDNS_CONF
if [ -z "$ip_network" ]; then
ip_network="wan"
fi
- scan_interfaces
- config_load /var/state/network
- config_get ip_interface $ip_network ifname
+ network_get_device ip_interface $ip_network
fi
if [ "$ip_source" = "web" ]; then
config_get ip_url $section ip_url