mirror of
http://git.openwrt.org/packages.git
synced 2025-01-09 04:19:54 +08:00
[packages] ez-ipupdate: use network.sh to find device names
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31944 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
428b3a56a0
commit
5a8c83cf92
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user