From 43d77cb62de30c9419315bc90ca8840dd436dcaa Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 5 Jul 2019 23:38:44 +0200 Subject: lease-script: give hint about mis-usage --- lease-script | 8 ++++++++ 1 file changed, 8 insertions(+) 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"; -- cgit v1.2.3-70-g09d2