aboutsummaryrefslogtreecommitdiffstats
path: root/dhcp-to-dns.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp-to-dns.rsc')
-rw-r--r--dhcp-to-dns.rsc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcp-to-dns.rsc b/dhcp-to-dns.rsc
index 1cdd86e..df6ae01 100644
--- a/dhcp-to-dns.rsc
+++ b/dhcp-to-dns.rsc
@@ -26,7 +26,9 @@
:global ParseKeyValueStore;
:global ScriptLock;
- $ScriptLock $ScriptName false 10;
+ :if ([ $ScriptLock $ScriptName 10 ] = false) do={
+ :return false;
+ }
:local Ttl 5m;
:local CommentPrefix ("managed by " . $ScriptName);