mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
cli: add pppoe type to nmcli bash completion
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
107fdd6b01
commit
7fa79fcc5e
1 changed files with 7 additions and 1 deletions
|
|
@ -304,7 +304,7 @@ _nmcli_complete_COMMAND_ARGS()
|
||||||
# user friendly. Only complete them, if the current word already starts with an "8".
|
# 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"
|
_nmcli_list "802-3-ethernet 802-11-wireless 802-11-olpc-mesh"
|
||||||
else
|
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
|
fi
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
@ -415,6 +415,8 @@ _nmcli_complete_COMMAND_ARGS()
|
||||||
apn| \
|
apn| \
|
||||||
con-name| \
|
con-name| \
|
||||||
user| \
|
user| \
|
||||||
|
username| \
|
||||||
|
service| \
|
||||||
password)
|
password)
|
||||||
if [[ "${#words[@]}" -eq 2 ]]; then
|
if [[ "${#words[@]}" -eq 2 ]]; then
|
||||||
return 0
|
return 0
|
||||||
|
|
@ -758,6 +760,10 @@ _nmcli()
|
||||||
OPTIONS_TYPED=(ssid channel dhcp-anycast)
|
OPTIONS_TYPED=(ssid channel dhcp-anycast)
|
||||||
OPTIONS_MANDATORY=(ssid)
|
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
|
# for an unknown connection type, we stop completion here
|
||||||
return 0
|
return 0
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue