[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:
jow
2012-05-28 15:04:30 +00:00
parent 02a568e6af
commit 428b3a56a0
2 changed files with 5 additions and 7 deletions

View 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