[packages] yaddns: use network.sh to find device names
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 28 May 2012 15:04:30 +0000 (15:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 28 May 2012 15:04:30 +0000 (15:04 +0000)
SVN-Revision: 31943

net/yaddns/Makefile
net/yaddns/files/etc/hotplug.d/iface/25-ddns

index 612d951050db0bdfdaf9ae7828c6e4a94bb8522a..a75685c22b425fbb9be1534c710e6457335b5f4f 100644 (file)
@@ -1,5 +1,5 @@
 #
-# 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.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 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/
index e06308815204e279a6cb284f17c2df08fcefc8c1..2aefc1881a54f072e037fd847889152528a20d63 100644 (file)
@@ -5,8 +5,8 @@ YADDNS_PID=/var/run/yaddns.pid
 
 prepare_yaddns_conf ()
 {
-       . /etc/functions.sh
-       include /lib/network
+       . /lib/functions.sh
+       . /lib/functions/network.sh
 
        > $YADDNS_CONF
 
@@ -33,9 +33,7 @@ prepare_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