summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-05-12 15:23:19 +0200
committerJames Rayner <james@archlinux.org>2009-05-12 15:23:19 +0200
commit3d73d23fbe6ea1ca6e72bb616d590c40f672d5f1 (patch)
tree987dacc61aa49994561bd5e584c4a9387cb1de10 /src
parentadd84f8cb178f3138839d5692766fda3de3d0d55 (diff)
downloadnetctl-3d73d23fbe6ea1ca6e72bb616d590c40f672d5f1.tar.gz
netctl-3d73d23fbe6ea1ca6e72bb616d590c40f672d5f1.tar.xz
improve netcfg help text
Diffstat (limited to 'src')
-rw-r--r--src/netcfg14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/netcfg b/src/netcfg
index 05599c5..0a128cb 100644
--- a/src/netcfg
+++ b/src/netcfg
@@ -18,24 +18,26 @@ usage()
echo " Start specified profile: netcfg profile "
echo " Other functions: netcfg argument profile"
echo "Arguments:"
+ echo "-a, all-down Take all active profiles down"
echo "-c, check-iface Do not start profile if interface is already up"
echo "-d, down Take specified profile down"
- echo "-a, all-down Take all active profiles down"
+ echo "-h, help This help message"
echo "-i, iface-down Take down profile active on specified interface"
+ echo "-r, reconnect Disconnect and reconnect specified profile"
+ echo "-u, up Start specified profile"
+ echo "-v, version Output version information and exit"
echo " all-resume Resume previously suspended profiles and reconnect them"
echo " all-suspend Store a list of current running profiles and suspend them"
- echo "-h, --help This message"
- echo "-v, --version Output version information and exit"
}
# TODO: Re-add ROOT check and rewrite with getopts from BashFAQ
case $1 in
- --version|-v)
+ --version|-v|version)
version;;
- --help|-h)
+ --help|-h|help)
usage;;
- -c|check-iface|up)
+ -c|check-iface|-u|up)
CHECK="YES";
profile_up $2;;
clean)