diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2015-02-23 20:01:52 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-02-23 20:01:52 +0100 |
commit | 8b08e300a26d8f596cdd0aabb70dca6d295954fa (patch) | |
tree | f25a8bcb66a37dd39aa8e471ffc186daa7c7778e | |
parent | 8423c70340fb2a13c0f7824a86aed25a8d12f78c (diff) | |
download | libmbim-8b08e300a26d8f596cdd0aabb70dca6d295954fa.tar.gz |
mbim-network: improved --help output with more detailed information
-rwxr-xr-x | utils/mbim-network.in | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/utils/mbim-network.in b/utils/mbim-network.in index 5ea8dd6..48d6e11 100755 --- a/utils/mbim-network.in +++ b/utils/mbim-network.in @@ -21,12 +21,14 @@ print_usage () { - echo "usage: $0 [DEVICE] [COMMAND]" + echo "usage: $0 [OPTIONS] [DEVICE] [COMMAND]" } help () { - echo "Usage: mbim-network [OPTIONS] [DEVICE] [COMMAND] - Simple network management of MBIM devices" + echo "Usage: mbim-network [OPTIONS] [DEVICE] [COMMAND]" + echo + echo "Simple network management of MBIM devices" echo echo "Commands:" echo " start Start network connection" @@ -37,12 +39,30 @@ help () echo " --help Show help options" echo " --version Show version" echo + echo "Notes:" + echo + echo " 1) [DEVICE] is given as the full path to the cdc-wdm character" + echo " device, e.g.:" + echo " /dev/cdc-wdm0" + echo + echo " 2) The mbim-network script requires a profile to be available" + echo " in the following path:" + echo " /etc/mbim-network.conf" + echo + echo " 3) The APN to use should be configured in the profile, in the" + echo " following way (e.g. assuming APN is called 'internet':" + echo " APN=internet" + echo + echo " 4) Once the mbim-network script reports a successful connection" + echo " you still need to run a DHCP client on the associated WWAN network" + echo " interface." + echo } version () { echo "mbim-network @VERSION@" - echo "Copyright (2013) Aleksander Morgado" + echo "Copyright (2013-2015) Aleksander Morgado" echo "License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>" echo "This is free software: you are free to change and redistribute it." echo "There is NO WARRANTY, to the extent permitted by law." |