mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00: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 @@
|
|||
/ caps-man 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");
|
||||
/ caps-man access-list remove $Remove;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
/ %PATH% 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");
|
||||
/ %PATH% access-list remove $Remove;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue