mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 10:14:31 +02:00
accesslist-duplicates: Read index from terminal inkey
This commit is contained in:
parent
39d1027d69
commit
213d326ad4
3 changed files with 9 additions and 9 deletions
|
@ -21,9 +21,9 @@
|
|||
/ interface wireless access-list print where mac-address=$Mac;
|
||||
:set Shown ($Shown, $Mac);
|
||||
|
||||
:put "\nEnter to skip, numeric id to remove!";
|
||||
:local Remove [ :return ];
|
||||
:if ($Remove != "") do={
|
||||
:put "\nNumeric id to remove, any key to skip!";
|
||||
:local Remove ([ :terminal inkey ] - 48);
|
||||
:if ($Remove >= 0 && $Remove <= 9) do={
|
||||
:put ("Removing numeric id " . $Remove . "...\n");
|
||||
/ interface wireless access-list remove $Remove;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue