aboutsummaryrefslogtreecommitdiffstats
path: root/accesslist-duplicates.capsman
diff options
context:
space:
mode:
Diffstat (limited to 'accesslist-duplicates.capsman')
-rw-r--r--accesslist-duplicates.capsman8
1 files changed, 4 insertions, 4 deletions
diff --git a/accesslist-duplicates.capsman b/accesslist-duplicates.capsman
index 74cf3b3..e1f83a3 100644
--- a/accesslist-duplicates.capsman
+++ b/accesslist-duplicates.capsman
@@ -17,8 +17,8 @@
:local Seen [ :toarray "" ];
:local Shown [ :toarray "" ];
-:foreach AccList in=[ / caps-man access-list find where mac-address!="00:00:00:00:00:00" ] do={
- :local Mac [ / caps-man access-list get $AccList mac-address ];
+:foreach AccList in=[ /caps-man/access-list/find where mac-address!="00:00:00:00:00:00" ] do={
+ :local Mac [ /caps-man/access-list/get $AccList mac-address ];
:foreach SeenMac in=$Seen do={
:if ($SeenMac = $Mac) do={
:local Skip 0;
@@ -26,14 +26,14 @@
:if ($ShownMac = $Mac) do={ :set Skip 1; }
}
:if ($Skip = 0) do={
- / caps-man access-list print where mac-address=$Mac;
+ /caps-man/access-list/print where mac-address=$Mac;
:set Shown ($Shown, $Mac);
:put "\nNumeric id to remove, any key to skip!";
:local Remove [ :tonum [ $Read ] ];
:if ([ :typeof $Remove ] = "num") do={
:put ("Removing numeric id " . $Remove . "...\n");
- / caps-man access-list remove $Remove;
+ /caps-man/access-list/remove $Remove;
}
}
}