[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
@ -35,10 +35,9 @@ start_daemon() {
local cfg="$1"
config_get logging "$cfg" logging
config_get iface "$cfg" interface
include /lib/network
scan_interfaces
# Translate listening interfaces to ip addresses
config_get IP "$iface" ipaddr
. /lib/functions/network.sh
network_get_ipaddr IP "$iface"
export ROOT
if [ "$DEBUG" == 1 ] ; then
$DAEMON