aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2015-02-23 19:46:12 +0100
committerAleksander Morgado <aleksander@aleksander.es>2015-02-23 20:01:00 +0100
commit8a5ba606b1eff548588624084fcb69ebd60d6c31 (patch)
tree551fe82a71305e1a5469b7bd41f3a32c6a69245b /utils
parent721457bc196dd2ee62a161cf592698f4db04a8f8 (diff)
qmi-network: improved --help output with more detailed information
Diffstat (limited to 'utils')
-rwxr-xr-xutils/qmi-network.in26
1 files changed, 23 insertions, 3 deletions
diff --git a/utils/qmi-network.in b/utils/qmi-network.in
index 0aeb76e..76abcfd 100755
--- a/utils/qmi-network.in
+++ b/utils/qmi-network.in
@@ -18,12 +18,14 @@
print_usage ()
{
- echo "usage: $0 [DEVICE] [COMMAND]"
+ echo "usage: $0 [OPTIONS] [DEVICE] [COMMAND]"
}
help ()
{
- echo "Usage: qmi-network [OPTIONS] [DEVICE] [COMMAND] - Simple network management of QMI devices"
+ echo "Usage: qmi-network [OPTIONS] [DEVICE] [COMMAND]"
+ echo
+ echo "Simple network management of QMI devices"
echo
echo "Commands:"
echo " start Start network connection"
@@ -34,12 +36,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 qmi-network script requires a profile to be available"
+ echo " in the following path:"
+ echo " /etc/qmi-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 qmi-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 "qmi-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."