aboutsummaryrefslogtreecommitdiffstats
path: root/hotspot-to-wpa-cleanup.capsman.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'hotspot-to-wpa-cleanup.capsman.rsc')
-rw-r--r--hotspot-to-wpa-cleanup.capsman.rsc10
1 files changed, 4 insertions, 6 deletions
diff --git a/hotspot-to-wpa-cleanup.capsman.rsc b/hotspot-to-wpa-cleanup.capsman.rsc
index 62beacc..ba74260 100644
--- a/hotspot-to-wpa-cleanup.capsman.rsc
+++ b/hotspot-to-wpa-cleanup.capsman.rsc
@@ -14,8 +14,8 @@
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
-:local Main do={
- :local ScriptName [ :tostr $1 ];
+:do {
+ :local ScriptName [ :jobname ];
:global EitherOr;
:global LogPrintExit2;
@@ -23,7 +23,7 @@
:global ScriptLock;
:if ([ $ScriptLock $ScriptName 10 ] = false) do={
- :return false;
+ :error false;
}
:local DHCPServers ({});
@@ -71,6 +71,4 @@
/ip/dhcp-server/lease/remove $Lease;
}
}
-}
-
-$Main [ :jobname ];
+} on-error={ }