diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-03-12 16:01:43 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-03-12 16:01:43 +0100 |
commit | 94ae8b1ccd08b7d0b2408db5b2054dee53413166 (patch) | |
tree | 534008d264f6c2b15b2431d5d20ca56f0e4b8c07 /contrib/bash-completion | |
parent | 1a6cc347550cfde03be9f3155240b8d0e60e3e39 (diff) | |
download | netctl-94ae8b1ccd08b7d0b2408db5b2054dee53413166.tar.gz netctl-94ae8b1ccd08b7d0b2408db5b2054dee53413166.tar.xz |
Rename -i parameter to -D
-i is not a very cool parameter for downing an interface. Change it to -D so that it mirrors -R in the sense that a capital is used for interface-based actions.
The old behaviour is kept (undocumented) for backward compatibility.
Also a typo (iface-recont should have been iface-recon) is fixed.
Lastly some restrictions on profile naming are included in the documentation. The "should not start with '@'" is only for usage with net-profiles.
Diffstat (limited to 'contrib/bash-completion')
-rw-r--r-- | contrib/bash-completion | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/bash-completion b/contrib/bash-completion index 8ec6a12..d045844 100644 --- a/contrib/bash-completion +++ b/contrib/bash-completion @@ -18,7 +18,7 @@ _netcfg () cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - opts="-l -c -u -r -R -d -i -a -v -h" + opts="-l -c -u -r -R -d -D -a -v -h" lopts="--help --version" cmds="list current check-iface up reconnect iface-recon down iface-down all-down all-suspend" prfls="`find /etc/network.d -maxdepth 1 -type f -not -name '*~' -not -name '*.conf' -not -name '.*' d -printf '%f\n'`" @@ -40,7 +40,7 @@ _netcfg () esac case "${prev}" in - -R|iface-recon|-i|iface-down) + -R|iface-recon|-D|iface-down) _connected_intfs return 0 ;; |