Add switch --list-clients

--list-clients <id> prints the list of connected clients associated with
<id>. <id> can either be a wifi iface name or pid of a create_ap
instance.
This commit is contained in:
Karthik K
2015-05-24 19:26:58 +05:30
parent 38db906a24
commit 3fd94ce9c3
2 changed files with 95 additions and 2 deletions

View File

@ -128,6 +128,10 @@ _create_ap() {
--list-running)
# No Options
;;
--list-clients)
local clients_awk_cmd='$1 ~ /^[0-9]+$/'
opts=$("$1" --list-running | awk "$clients_awk_cmd")
;;
--mkconfig)
_use_filedir && return 0
;;