mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: drop $Read, use :return directly
This commit is contained in:
@@ -6,8 +6,6 @@
|
|||||||
#
|
#
|
||||||
# !! Do not edit this file, it is generated from template!
|
# !! Do not edit this file, it is generated from template!
|
||||||
|
|
||||||
:global Read;
|
|
||||||
|
|
||||||
:local Seen [ :toarray "" ];
|
:local Seen [ :toarray "" ];
|
||||||
:local Shown [ :toarray "" ];
|
:local Shown [ :toarray "" ];
|
||||||
|
|
||||||
@@ -24,7 +22,7 @@
|
|||||||
:set Shown ($Shown, $Mac);
|
:set Shown ($Shown, $Mac);
|
||||||
|
|
||||||
:put "\nEnter to skip, numeric id to remove!";
|
:put "\nEnter to skip, numeric id to remove!";
|
||||||
:local Remove [ $Read ];
|
:local Remove [ :return ];
|
||||||
:if ($Remove != "") do={
|
:if ($Remove != "") do={
|
||||||
:put ("Removing numeric id " . $Remove . "...\n");
|
:put ("Removing numeric id " . $Remove . "...\n");
|
||||||
/ caps-man access-list remove $Remove;
|
/ caps-man access-list remove $Remove;
|
||||||
|
@@ -6,8 +6,6 @@
|
|||||||
#
|
#
|
||||||
# !! Do not edit this file, it is generated from template!
|
# !! Do not edit this file, it is generated from template!
|
||||||
|
|
||||||
:global Read;
|
|
||||||
|
|
||||||
:local Seen [ :toarray "" ];
|
:local Seen [ :toarray "" ];
|
||||||
:local Shown [ :toarray "" ];
|
:local Shown [ :toarray "" ];
|
||||||
|
|
||||||
@@ -24,7 +22,7 @@
|
|||||||
:set Shown ($Shown, $Mac);
|
:set Shown ($Shown, $Mac);
|
||||||
|
|
||||||
:put "\nEnter to skip, numeric id to remove!";
|
:put "\nEnter to skip, numeric id to remove!";
|
||||||
:local Remove [ $Read ];
|
:local Remove [ :return ];
|
||||||
:if ($Remove != "") do={
|
:if ($Remove != "") do={
|
||||||
:put ("Removing numeric id " . $Remove . "...\n");
|
:put ("Removing numeric id " . $Remove . "...\n");
|
||||||
/ interface wireless access-list remove $Remove;
|
/ interface wireless access-list remove $Remove;
|
||||||
|
@@ -7,8 +7,6 @@
|
|||||||
# !! This is just a template! Replace '%PATH%' with 'caps-man'
|
# !! This is just a template! Replace '%PATH%' with 'caps-man'
|
||||||
# !! or 'interface wireless'!
|
# !! or 'interface wireless'!
|
||||||
|
|
||||||
:global Read;
|
|
||||||
|
|
||||||
:local Seen [ :toarray "" ];
|
:local Seen [ :toarray "" ];
|
||||||
:local Shown [ :toarray "" ];
|
:local Shown [ :toarray "" ];
|
||||||
|
|
||||||
@@ -25,7 +23,7 @@
|
|||||||
:set Shown ($Shown, $Mac);
|
:set Shown ($Shown, $Mac);
|
||||||
|
|
||||||
:put "\nEnter to skip, numeric id to remove!";
|
:put "\nEnter to skip, numeric id to remove!";
|
||||||
:local Remove [ $Read ];
|
:local Remove [ :return ];
|
||||||
:if ($Remove != "") do={
|
:if ($Remove != "") do={
|
||||||
:put ("Removing numeric id " . $Remove . "...\n");
|
:put ("Removing numeric id " . $Remove . "...\n");
|
||||||
/ %PATH% access-list remove $Remove;
|
/ %PATH% access-list remove $Remove;
|
||||||
|
@@ -12,11 +12,6 @@
|
|||||||
:global SentLteFirmwareUpgradeNotification "-";
|
:global SentLteFirmwareUpgradeNotification "-";
|
||||||
:global Identity [ / system identity get name ];
|
:global Identity [ / system identity get name ];
|
||||||
|
|
||||||
# read input from user
|
|
||||||
:global Read do={
|
|
||||||
:return;
|
|
||||||
}
|
|
||||||
|
|
||||||
# url encoding
|
# url encoding
|
||||||
:global UrlEncode do={
|
:global UrlEncode do={
|
||||||
:local Input [ :tostr $1 ];
|
:local Input [ :tostr $1 ];
|
||||||
|
Reference in New Issue
Block a user