[packages] djbdns: use network.sh to find ip addresses

git-svn-id: svn://svn.openwrt.org/openwrt/packages@31965 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow
2012-05-29 00:54:02 +00:00
parent 8d8315f76a
commit db4d0eb42e
6 changed files with 20 additions and 25 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org
# Copyright (C) 2007-2012 OpenWrt.org
#
# version 20090401 jhalfmoon
@ -46,9 +46,8 @@ start_daemon() {
# Unset AXFR if it is empty
[ -z $AXFR ] && export -n AXFR
# Translate listening interfaces to ip addresses
include /lib/network
scan_interfaces
config_get IP "$iface" ipaddr
. /lib/functions/network.sh
network_get_ipaddr IP "$iface" || return 1
export ROOT
if [ "$DEBUG" == 1 ] ; then
$DAEMON -vDRHl0 -c40 -b10 -x $ROOT/tcp.cdb -- $IP 53 $APP