mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
isc-dhcp: don't die when a network restart happens
Our triggering code was using the logical network name and not the ifname as required. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
@@ -11,7 +11,7 @@ PKG_NAME:=isc-dhcp
|
|||||||
UPSTREAM_NAME:=dhcp
|
UPSTREAM_NAME:=dhcp
|
||||||
PKG_REALVERSION:=4.4.3-P1
|
PKG_REALVERSION:=4.4.3-P1
|
||||||
PKG_VERSION:=4.4.3_p1
|
PKG_VERSION:=4.4.3_p1
|
||||||
PKG_RELEASE:=15
|
PKG_RELEASE:=16
|
||||||
|
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|||||||
@@ -724,14 +724,15 @@ reload_service() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
add_interface_trigger() {
|
add_interface_trigger() {
|
||||||
local cfg=$1
|
local cfg="$1"
|
||||||
local trigger ignore
|
local net ignore ifname
|
||||||
|
|
||||||
config_get trigger "$cfg" interface
|
config_get net "$cfg" interface
|
||||||
config_get_bool ignore "$cfg" ignore 0
|
config_get_bool ignore "$cfg" ignore 0
|
||||||
|
|
||||||
if [ -n "$trigger" ] && [ $ignore -eq 0 ]; then
|
if [ -n "$net" ] && [ $ignore -eq 0 ]; then
|
||||||
procd_add_reload_interface_trigger "$trigger"
|
network_get_device ifname "$net"
|
||||||
|
procd_add_reload_interface_trigger "$ifname"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user