collect-wireless-mac: always use first entry to place before

This commit is contained in:
Christian Hesse 2021-01-03 20:33:32 +01:00
parent 241d5fd2d7
commit c18f753338
3 changed files with 3 additions and 3 deletions

View file

@ -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 ];