mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
accesslist-duplicates: Read index from terminal inkey
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user