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:
@ -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
|
||||
;;
|
||||
|
Reference in New Issue
Block a user