[packages] yaddns: use network.sh to find device names
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31943 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
02a568e6af
commit
428b3a56a0
@ -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.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=yaddns
|
PKG_NAME:=yaddns
|
||||||
PKG_VERSION:=1.1
|
PKG_VERSION:=1.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://download.gna.org/yaddns/
|
PKG_SOURCE_URL:=http://download.gna.org/yaddns/
|
||||||
|
@ -5,8 +5,8 @@ YADDNS_PID=/var/run/yaddns.pid
|
|||||||
|
|
||||||
prepare_yaddns_conf ()
|
prepare_yaddns_conf ()
|
||||||
{
|
{
|
||||||
. /etc/functions.sh
|
. /lib/functions.sh
|
||||||
include /lib/network
|
. /lib/functions/network.sh
|
||||||
|
|
||||||
> $YADDNS_CONF
|
> $YADDNS_CONF
|
||||||
|
|
||||||
@ -33,9 +33,7 @@ prepare_yaddns_conf ()
|
|||||||
if [ -z "$ip_network" ]; then
|
if [ -z "$ip_network" ]; then
|
||||||
ip_network="wan"
|
ip_network="wan"
|
||||||
fi
|
fi
|
||||||
scan_interfaces
|
network_get_device ip_interface $ip_network
|
||||||
config_load /var/state/network
|
|
||||||
config_get ip_interface $ip_network ifname
|
|
||||||
fi
|
fi
|
||||||
if [ "$ip_source" = "web" ]; then
|
if [ "$ip_source" = "web" ]; then
|
||||||
config_get ip_url $section ip_url
|
config_get ip_url $section ip_url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user