some improvements

add '-l'

change MAC addr backking up and restoring judgement to OLD_MACADDR ==
now

filter --lc STATUS==FAILED line

fix iw and iwconfig availability not checked

not use die() before trap
This commit is contained in:
garywill
2021-02-22 09:20:41 +08:00
parent 2341938b76
commit 1e3c5004c3
2 changed files with 47 additions and 27 deletions

View File

@@ -303,10 +303,11 @@ Options:
Instance managing:
--daemon Run in background
--list-running Show running instances
--lc, --list-clients <id>
-l, --list-running Show running instances
--lc, --list-clients <id|interface>
List clients of an instance. Or list neighbors of
any interface, even if it isn't handled by us
an interface, even if it isn't handled by us.
(passive mode)
--stop <id> Stop a running instance
For <id> you can use PID or subnet interface name.
You can get them with '--list-running'