From: Michael Tremer Date: Thu, 8 Sep 2016 16:44:30 +0000 (+0200) Subject: DHCP: dhcpd_subnet_range_new: Make ${range} available throughout function X-Git-Tag: 009~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52f69c524503a4aba9f964bf747e1ae585bae3f6;p=network.git DHCP: dhcpd_subnet_range_new: Make ${range} available throughout function Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.dhcpd b/src/functions/functions.dhcpd index 5e44cd6a..fbce2050 100644 --- a/src/functions/functions.dhcpd +++ b/src/functions/functions.dhcpd @@ -723,12 +723,12 @@ dhcpd_subnet_range_new() { ;; esac assert isset settings - local ${settings} + local range ${settings} while [ $# -gt 0 ]; do case "${1}" in *-*) - local range=${1} + range=${1} START="${range%-*}" END="${range#*-}" @@ -762,12 +762,12 @@ dhcpd_subnet_range_new() { fi # Write the configuration to file. - local file=$(dhcpd_subnet_range_path ${proto} ${subnet} "${START}-${END}") + local file=$(dhcpd_subnet_range_path ${proto} ${subnet} ${range}) assert isset file settings_write ${file} ${settings} - log INFO "DHCP subnet range ${START}-${END} created" + log INFO "DHCP subnet range ${range} created" return ${EXIT_OK} }