فهرست منبع

nmcli-agent, nmcli-radio: add page (#7863)

git-em 3 سال پیش
والد
کامیت
cbfe325cb1
2فایلهای تغییر یافته به همراه46 افزوده شده و 0 حذف شده
  1. 17 0
      pages/linux/nmcli-agent.md
  2. 29 0
      pages/linux/nmcli-radio.md

+ 17 - 0
pages/linux/nmcli-agent.md

@@ -0,0 +1,17 @@
+# nmcli agent
+
+> Run nmcli as a NetworkManager secret agent or polkit agent.
+> See also: `nmcli radio`.
+> More information: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
+
+- Register nmcli as a secret agent and listen for secret requests:
+
+`nmcli agent secret`
+
+- Register nmcli as a polkit agent and listen for authorization requests:
+
+`nmcli agent polkit`
+
+- Register nmcli as a secret agent and a polkit agent:
+
+`nmcli agent all`

+ 29 - 0
pages/linux/nmcli-radio.md

@@ -0,0 +1,29 @@
+# nmcli radio
+
+> Show radio switches status or enable and disable switches.
+> See also: `nmcli agent`.
+> More information: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
+
+- Show status of Wi-Fi in NetworkManager:
+
+`nmcli radio wifi`
+
+- Turn Wi-Fi on or off in NetworkManager:
+
+`nmcli radio wifi {{on|off}}`
+
+- Show status of WWAN in NetworkManager:
+
+`nmcli radio wwan`
+
+- Turn WWAN on or off in NetworkManager:
+
+`nmcli radio wwan {{on|off}}`
+
+- Show status of both switches in NetworkManager:
+
+`nmcli radio all`
+
+- Turn both switches on or off in NetworkManager:
+
+`nmcli radio all {{on|off}}`