diff options
author | Christian Hesse <mail@eworm.de> | 2020-02-24 20:09:51 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-02-26 11:51:49 +0100 |
commit | 0326a7222c9c4f2dcb588826d355c94e9454976f (patch) | |
tree | 0738d78a29b965196d42428a54a1c8a48f5b61b2 /lease-script | |
parent | 7ec411c542c399a8d5f5ddea0253cc068c16b600 (diff) |
lease-script: use $LogAndError
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; |