From 52f69c524503a4aba9f964bf747e1ae585bae3f6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 8 Sep 2016 18:44:30 +0200 Subject: [PATCH] DHCP: dhcpd_subnet_range_new: Make ${range} available throughout function Signed-off-by: Michael Tremer --- src/functions/functions.dhcpd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/functions/functions.dhcpd b/src/functions/functions.dhcpd index 5e44cd6..fbce205 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} } -- 2.47.3