diff options
Diffstat (limited to 'lease-script')
-rw-r--r-- | lease-script | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lease-script b/lease-script index 0b32d17..588c9ff 100644 --- a/lease-script +++ b/lease-script @@ -4,12 +4,13 @@ # # run scripts on DHCP lease +:global LogAndError; + :if ([ :typeof $leaseActIP ] = "nothing" || \ [ :typeof $leaseActMAC ] = "nothing" || \ [ :typeof $leaseServerName ] = "nothing" || \ [ :typeof $leaseBound ] = "nothing") do={ - :log error "This script is supposed to run from ip dhcp-client."; - :error "Error: See log for details."; + $LogAndError "This script is supposed to run from ip dhcp-client."; } :local Scripts; |