mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
collect-wireless-mac: always use first entry to place before
This commit is contained in:
parent
241d5fd2d7
commit
c18f753338
3 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ $ScriptLock "collect-wireless-mac.capsman";
|
|||
/ caps-man access-list add comment="--- collected above ---" disabled=yes;
|
||||
$LogPrintExit warning "Added disabled access-list entry with comment '--- collected above ---'." false;
|
||||
}
|
||||
:local PlaceBefore [ / caps-man access-list find where comment="--- collected above ---" disabled ];
|
||||
:local PlaceBefore ([ / caps-man access-list find where comment="--- collected above ---" disabled ]->0);
|
||||
|
||||
:foreach RegTbl in=[ / caps-man registration-table find ] do={
|
||||
:local Mac [ / caps-man registration-table get $RegTbl mac-address ];
|
||||
|
|
|
@ -22,7 +22,7 @@ $ScriptLock "collect-wireless-mac.local";
|
|||
/ interface wireless access-list add comment="--- collected above ---" disabled=yes;
|
||||
$LogPrintExit warning "Added disabled access-list entry with comment '--- collected above ---'." false;
|
||||
}
|
||||
:local PlaceBefore [ / interface wireless access-list find where comment="--- collected above ---" disabled ];
|
||||
:local PlaceBefore ([ / interface wireless access-list find where comment="--- collected above ---" disabled ]->0);
|
||||
|
||||
:foreach RegTbl in=[ / interface wireless registration-table find ] do={
|
||||
:local Mac [ / interface wireless registration-table get $RegTbl mac-address ];
|
||||
|
|
|
@ -23,7 +23,7 @@ $ScriptLock "collect-wireless-mac%TEMPL%";
|
|||
/ %PATH% access-list add comment="--- collected above ---" disabled=yes;
|
||||
$LogPrintExit warning "Added disabled access-list entry with comment '--- collected above ---'." false;
|
||||
}
|
||||
:local PlaceBefore [ / %PATH% access-list find where comment="--- collected above ---" disabled ];
|
||||
:local PlaceBefore ([ / %PATH% access-list find where comment="--- collected above ---" disabled ]->0);
|
||||
|
||||
:foreach RegTbl in=[ / %PATH% registration-table find ] do={
|
||||
:local Mac [ / %PATH% registration-table get $RegTbl mac-address ];
|
||||
|
|
Loading…
Reference in a new issue