The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using scriptlet option?
2018-03-14, 18:45 (This post was last modified: 2018-03-14 18:47 by myxal.)
Post: #1
Using scriptlet option?
Hi all.
I've encountered several mentions of the "ipxe.scriptlet" dhcp option (encap: 175:81) on the forums and around, but couldn't find documentation or a good example. Is it deprecated or something?

I'd like to use it to set a variable used later in the main script, so I set dnsmasq to pass this inside the option:
Code:
dhcp-option-force=<tag filters...>,encap:175,81,"set nd-option live-netdev=eth1"
Now, how do I execute it? Testing in the interactive shell, the obvious ${scriptlet} tries to use the entire string as a command name:
Code:
set nd-option live-netdev=eth1: command not found
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Using scriptlet option? - myxal - 2018-03-14 18:45
RE: Using scriptlet option? - NiKiZe - 2018-03-14, 19:47
RE: Using scriptlet option? - myxal - 2018-03-14, 22:21
RE: Using scriptlet option? - NiKiZe - 2018-03-15, 08:44
RE: Using scriptlet option? - myxal - 2018-03-15, 09:41



User(s) browsing this thread: 1 Guest(s)