]> git.ipfire.org Git - people/jschlag/network.git/commitdiff
DHCP: Fix options parsing
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Aug 2017 09:21:53 +0000 (09:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Aug 2017 09:21:53 +0000 (09:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/network

index 5419dd4c616c475977486dcbe9323e9c9de4ba63..547bab1b594cc2f25fd7632670bb8218f19ae9e9 100644 (file)
@@ -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
 }