man: show example for nmcli device wifi connect in nmcli-example manual

Add the only important example that this file should have

All other examples are nice. But when you install a console-only
machine and read the NM man pages, you are none the wiser, because
something as simple like this isn't covered in the man pages.

I've seen other users complain about it, and I've torn my hair out
over this several times.

[thaller@redhat.com: changed subject line of patch]
This commit is contained in:
Auke Kok 2020-03-05 10:39:46 -08:00 committed by Thomas Haller
parent c5a6e07d07
commit 425293b13c

View file

@ -87,6 +87,10 @@
</para>
</example>
<example><title>Connect to a password-protected wifi network</title>
<screen><prompt>$ </prompt><userinput>nmcli device wifi connect "ssid" password "password"</userinput></screen>
</example>
<example><title>Showing general information and properties for a Wi-Fi interface</title>
<screen><prompt>$ </prompt><userinput>nmcli -p -f general,wifi-properties device show wlan0</userinput>
===========================================================================