From: Michael Tremer Date: Thu, 3 Jun 2010 20:57:52 +0000 (+0200) Subject: network: Add help texts for config command. X-Git-Tag: 001~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe688aa499f078d3eb2d8256dc587d2d2110a7bf;p=network.git network: Add help texts for config command. --- diff --git a/functions.cli b/functions.cli index 43f60b37..21241512 100644 --- a/functions.cli +++ b/functions.cli @@ -20,6 +20,11 @@ ############################################################################### 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|...]" echo