diff options
author | Christian Hesse <mail@eworm.de> | 2021-08-30 16:03:29 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-08-30 16:03:29 +0200 |
commit | 6b04fff3eb2214eafa8dab01bfef672508d2440e (patch) | |
tree | 4b12af5508922d501a8193f0e38fae99fbc5fbba /lease-script | |
parent | 73dfb0c8eeafa7a5614500b8d8a8df08130bf4e6 (diff) |
lease-script: move debug output up
Diffstat (limited to 'lease-script')
-rw-r--r-- | lease-script | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lease-script b/lease-script index 6de6fd9..ab35ee5 100644 --- a/lease-script +++ b/lease-script @@ -22,15 +22,15 @@ $LogPrintExit2 error $0 ("This script is supposed to run from ip dhcp-server.") true; } +$LogPrintExit2 debug $0 ("DHCP Server " . $leaseServerName . " " . [ $IfThenElse ($leaseBound = 0) \ + "de" "" ] . "assigned lease " . $leaseActIP . " to " . $leaseActMAC) false; + $ScriptLock $0 false 10; :if ([ :len [ / system script job find where script=$0 ] ] > 1) do={ $LogPrintExit2 debug $0 ("More invocations are waiting, exiting early.") true; } -$LogPrintExit2 debug $0 ("DHCP Server " . $leaseServerName . " " . [ $IfThenElse ($leaseBound = 0) \ - "de" "" ] . "assigned lease " . $leaseActIP . " to " . $leaseActMAC) false; - :local RunOrder [ :toarray "" ]; :foreach Script in=[ / system script find where source~("\n# provides: lease-script, ") ] do={ |