summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2012-03-08 15:03:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-03-12 22:44:06 +0100
commit3661e874aabd6fe29dba1bd32a8507b3b0f37e81 (patch)
tree5488e7788f8fd45afa1b22eb3b4acd6ec10680c6 /defaultenv
parent4cf35a6c6d58fa2a4fb6c117792fd0a034345742 (diff)
downloadbarebox-3661e874aabd6fe29dba1bd32a8507b3b0f37e81.tar.gz
barebox-3661e874aabd6fe29dba1bd32a8507b3b0f37e81.tar.xz
net: dhcp: allow to set transmitted vendor id
For net boot setups it is useful to submit boot params like server or bootfile over dhcp. To distinguish barebox from e.g. pxe machines, a custom vendor id can be sent in dhcp discover/request messages. E.g. the ISC dhcp server can be configured with | if substring(option vendor-class-identifier,0,8) = "barebox:" { | next-server 192.168.3.24; | server-name "192.168.3.24"; | option tftp-server-name "192.168.3.24"; | option root-path = concat("/srv/sysroots/by-mac/", | binary-to-ascii (16, 8, "-", substring (hardware, 1, 6))); | } to sent boot params which are valid for barebox hosts only. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Jean-Christophe PLAGNIOL-VILLARD: - update the use dhcp command option - support to set the vendor via env dhcp_vendor_id Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/config1
1 files changed, 1 insertions, 0 deletions
diff --git a/defaultenv/config b/defaultenv/config
index 98662735e..63fc05963 100644
--- a/defaultenv/config
+++ b/defaultenv/config
@@ -9,6 +9,7 @@ machine=FIXME
# use 'dhcp' to do dhcp in barebox and in kernel
# use 'none' if you want to skip kernel ip autoconfiguration
ip=dhcp
+dhcp_vendor_id=barebox
# or set your networking parameters here
#eth0.ipaddr=a.b.c.d