diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-05 23:38:44 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-05 23:38:44 +0200 |
commit | 43d77cb62de30c9419315bc90ca8840dd436dcaa (patch) | |
tree | e67b839e77ba3b5619643138843fe15d2e4af699 | |
parent | 933db2ddc89b99c2d54a26fa063068a01fc1c241 (diff) |
lease-script: give hint about mis-usage
-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"; |