From: Michael Tremer Date: Sun, 6 Aug 2017 09:21:53 +0000 (+0000) Subject: DHCP: Fix options parsing X-Git-Tag: 009~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de21f838b9cb220324ac63038d06a640b3c6b97d;p=network.git DHCP: Fix options parsing Signed-off-by: Michael Tremer --- diff --git a/src/network b/src/network index 5419dd4c..547bab1b 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 }