From: Jo-Philipp Wich Date: Mon, 28 May 2012 15:08:19 +0000 (+0000) Subject: [packages] ez-ipupdate: use network.sh to find device names X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=0cce07172760275cef23781bfc1c5d49bfa504fa [packages] ez-ipupdate: use network.sh to find device names SVN-Revision: 31944 --- diff --git a/net/ez-ipupdate/Makefile b/net/ez-ipupdate/Makefile index 90a97e02e6..5a5b890fef 100644 --- a/net/ez-ipupdate/Makefile +++ b/net/ez-ipupdate/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2011 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:=ez-ipupdate PKG_VERSION:=3.0.11b8 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/ez-ipupdate \ diff --git a/net/ez-ipupdate/files/ez-ipupdate.hotplug b/net/ez-ipupdate/files/ez-ipupdate.hotplug index f07542f4f1..3359c6a498 100644 --- a/net/ez-ipupdate/files/ez-ipupdate.hotplug +++ b/net/ez-ipupdate/files/ez-ipupdate.hotplug @@ -16,7 +16,7 @@ case "$ACTION" in [ "$program" = "$NAME" ] && { config_get interface $cfg interface [ "$interface" = "$INTERFACE" ] && { - config_get dev "$INTERFACE" ifname + network_get_device dev "$INTERFACE" || return config_get enabled $cfg enabled enabled=${enabled:-1} @@ -73,11 +73,9 @@ EOF } } + . /lib/functions/network.sh - include /lib/network - scan_interfaces config_load ddns - config_foreach ddns ddns ;; esac