aboutsummaryrefslogtreecommitdiffstats
path: root/accesslist-duplicates.wifiwave2.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'accesslist-duplicates.wifiwave2.rsc')
-rw-r--r--accesslist-duplicates.wifiwave2.rsc4
1 files changed, 1 insertions, 3 deletions
diff --git a/accesslist-duplicates.wifiwave2.rsc b/accesslist-duplicates.wifiwave2.rsc
index 6897a51..4297898 100644
--- a/accesslist-duplicates.wifiwave2.rsc
+++ b/accesslist-duplicates.wifiwave2.rsc
@@ -15,11 +15,10 @@
:global Read;
:local Seen ({});
-:local Shown ({});
:foreach AccList in=[ /interface/wifiwave2/access-list/find where mac-address!="00:00:00:00:00:00" ] do={
:local Mac [ /interface/wifiwave2/access-list/get $AccList mac-address ];
- :if ($Seen->$Mac = 1 && $Shown->$Mac != 1) do={
+ :if ($Seen->$Mac = 1) do={
/interface/wifiwave2/access-list/print where mac-address=$Mac;
:put "\nNumeric id to remove, any key to skip!";
:local Remove [ :tonum [ $Read ] ];
@@ -27,7 +26,6 @@
:put ("Removing numeric id " . $Remove . "...\n");
/interface/wifiwave2/access-list/remove $Remove;
}
- :set ($Shown->$Mac) 1;
}
:set ($Seen->$Mac) 1;
}