diff options
Diffstat (limited to 'lease-script')
-rw-r--r-- | lease-script | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lease-script b/lease-script index d8d6562..b934086 100644 --- a/lease-script +++ b/lease-script @@ -4,6 +4,14 @@ # # run scripts on DHCP lease +: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."; +} + :local Scripts; :local ScriptsAssign { "dhcp-to-dns"; |