mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 08:28:20 +04:00
Merge pull request #5990 from tripolar/master
don't use unitialised vars when UNBOUND_D_DHCP_LINK != odhcpd
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=unbound
|
||||
PKG_VERSION:=1.7.0
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
@@ -408,17 +408,19 @@ bundle_private_interface() {
|
||||
##############################################################################
|
||||
|
||||
unbound_mkdir() {
|
||||
local dhcp_origin=$( uci_get dhcp.@odhcpd[0].leasefile )
|
||||
local dhcp_dir=$( dirname $dhcp_origin )
|
||||
local filestuff
|
||||
|
||||
if [ "$UNBOUND_D_DHCP_LINK" = "odhcpd" ] ; then
|
||||
local dhcp_origin=$( uci_get dhcp.@odhcpd[0].leasefile )
|
||||
local dhcp_dir=$( dirname $dhcp_origin )
|
||||
|
||||
if [ "$UNBOUND_D_DHCP_LINK" = "odhcpd" -a ! -d "$dhcp_dir" ] ; then
|
||||
# make sure odhcpd has a directory to write (not done itself, yet)
|
||||
mkdir -p "$dhcp_dir"
|
||||
|
||||
if [ ! -d "$dhcp_dir" ] ; then
|
||||
# make sure odhcpd has a directory to write (not done itself, yet)
|
||||
mkdir -p "$dhcp_dir"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ -f $UNBOUND_KEYFILE ] ; then
|
||||
filestuff=$( cat $UNBOUND_KEYFILE )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user