]> git.ipfire.org Git - people/stevee/network.git/blobdiff - functions.cli.firewall
firewall: Re-unity firewall6/4 configuration again.
[people/stevee/network.git] / functions.cli.firewall
index 39f0a4345b168c4e9b114b7c499d79b221f98396..7d3557d22104d42231dae81c5f050fe560354301 100755 (executable)
@@ -57,10 +57,6 @@ function firewall_cli() {
                        firewall_cli_panic "${protocol}" "$@"
                        ;;
 
-               config)
-                       firewall_cli_config "${protocol}" $@
-                       ;;
-
                zone)
                        firewall_cli_zone $@
                        ;;
@@ -108,20 +104,16 @@ function firewall_cli_panic() {
 }
 
 function firewall_cli_config() {
-       local protocol="${1}"
-       assert isset protocol
-       shift
-
        if cli_help_requested $@; then
-               cli_usage root-config
+               cli_show_man firewall-config
                exit ${EXIT_OK}
        fi
 
        if [ -n "${1}" ]; then
                config_set "$@"
-               firewall_config_write "${protocol}"
+               firewall_config_write
        else
-               firewall_config_print "${protocol}"
+               firewall_config_print
        fi
 }