]> git.ipfire.org Git - people/stevee/network.git/commitdiff
zone_port_settings_write: Allow writing an empty settings file
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Dec 2014 16:40:23 +0000 (16:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Dec 2014 16:40:23 +0000 (16:40 +0000)
src/functions/functions.zone

index b10ea7b8e8a10e66e6eb8690fe54db63cbbb12b0..f23d1ad6d3f3912f28c3d4cdad734ff355d4d35e 100644 (file)
@@ -941,7 +941,7 @@ function zone_port_settings_read() {
 }
 
 function zone_port_settings_write() {
-       assert [ $# -gt 2 ]
+       assert [ $# -ge 2 ]
 
        local zone="${1}"
        local port="${2}"