[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:
@ -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
|
||||
|
Reference in New Issue
Block a user