cli: add pppoe type to nmcli bash completion

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2013-12-13 12:34:54 +01:00 committed by Jiří Klimeš
parent 107fdd6b01
commit 7fa79fcc5e

View file

@ -304,7 +304,7 @@ _nmcli_complete_COMMAND_ARGS()
# user friendly. Only complete them, if the current word already starts with an "8".
_nmcli_list "802-3-ethernet 802-11-wireless 802-11-olpc-mesh"
else
_nmcli_list "ethernet wifi wimax gsm cdma infiniband adsl bluetooth vpn olpc-mesh vlan bond bond-slave bridge bridge-slave team team-slave"
_nmcli_list "ethernet wifi wimax gsm cdma infiniband adsl bluetooth vpn olpc-mesh vlan bond bond-slave bridge bridge-slave team team-slave pppoe"
fi
return 0
fi
@ -415,6 +415,8 @@ _nmcli_complete_COMMAND_ARGS()
apn| \
con-name| \
user| \
username| \
service| \
password)
if [[ "${#words[@]}" -eq 2 ]]; then
return 0
@ -758,6 +760,10 @@ _nmcli()
OPTIONS_TYPED=(ssid channel dhcp-anycast)
OPTIONS_MANDATORY=(ssid)
;;
p|pp|ppp|pppo|pppoe)
OPTIONS_TYPED=(username password service mtu mac)
OPTIONS_MANDATORY=(username)
;;
*)
# for an unknown connection type, we stop completion here
return 0