From de21f838b9cb220324ac63038d06a640b3c6b97d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 6 Aug 2017 09:21:53 +0000 Subject: [PATCH] DHCP: Fix options parsing Signed-off-by: Michael Tremer --- src/network | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network b/src/network index 5419dd4..547bab1 100644 --- a/src/network +++ b/src/network @@ -1040,7 +1040,7 @@ cli_dhcpd_subnet_show() { } cli_dhcpd_subnet_options() { - assert [ $# -eq 2 ] + assert [ $# -ge 2 ] local proto=${1} local subnet=${2} @@ -1054,6 +1054,7 @@ cli_dhcpd_subnet_options() { dhcpd_subnet_option_set ${proto} ${subnet} ${key} ${val} esac + shift done } -- 2.39.5