From: Michael Tremer Date: Thu, 8 Sep 2016 17:14:26 +0000 (+0200) Subject: DHCP: Reload after subnet range changes X-Git-Tag: 009~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90b63fca5ffe47dcb48cb1debc156175bd25c4ed;p=network.git DHCP: Reload after subnet range changes Signed-off-by: Michael Tremer --- diff --git a/src/network b/src/network index 4daa2b8c..923558e3 100644 --- a/src/network +++ b/src/network @@ -985,12 +985,10 @@ cli_dhcpd_subnet_range() { case "${action}" in new) - dhcpd_subnet_range_new ${proto} ${subnet_id} $@ - exit $? + dhcpd_subnet_range_new ${proto} ${subnet_id} $@ || exit ${EXIT_ERROR} ;; remove) - dhcpd_subnet_range_remove ${proto} ${subnet_id} $@ - exit $? + dhcpd_subnet_range_remove ${proto} ${subnet_id} $@ || exit ${EXIT_ERROR} ;; *) error "Unrecognized action: ${action}" @@ -998,6 +996,9 @@ cli_dhcpd_subnet_range() { exit ${EXIT_ERROR} ;; esac + + dhcpd_reload ${proto} + return ${EXIT_OK} } cli_dhcpd_subnet_show() {