]> git.ipfire.org Git - people/arne_f/network.git/commitdiff
network: Add help texts for config command.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Jun 2010 20:57:52 +0000 (22:57 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Jun 2010 20:57:52 +0000 (22:57 +0200)
functions.cli

index 43f60b375ee1ce05e52ef359f3c5ea9d79937448..212415120d74ae6097defd3331ee76fdad1bdc92 100644 (file)
 ###############################################################################
 
 function cli_config() {
+       if cli_help_requested $@; then
+               cli_usage root-config
+               exit ${EXIT_OK}
+       fi
+
        if [ -n "${1}" ]; then
                network_config_set $@
        else
@@ -227,6 +232,18 @@ function cli_usage() {
                        echo "  zone   - ..."
                        echo
                        ;;
+               root-config)
+                       echo    "${0}: ${what#root-} [KEY=VAL, ...]"
+                       echo
+                       echo    "  This command allows setting of global configuration parameters."
+                       echo
+                       echo    "  If no additional arguments are passed it will list the current configuration."
+                       echo
+                       echo    "  You can overwrite the settings like the following:"
+                       echo
+                       echo    "    ${0} ${what#root-} DEBUG=1 ..."
+                       echo
+                       ;;
                root-start|root-stop)
                        echo    "${0}: ${what#root-} [--local-only|--remote-only|--all|<zone>...]"
                        echo