From 1c79728984af1b0b065ce5879581f41fa9f03da3 Mon Sep 17 00:00:00 2001 From: Geert Stappers Date: Thu, 5 Jan 2023 00:21:47 +0100 Subject: feat: add human-friendly entry point * Added /start as entry point, for humans and iPXE The '/poll/1/${netX/mac:hexhyp}' is fairly iPXE internal, not something that invites curious people to look better at shoelaces. Neither it is looking nice in DHCP server configuration. This change adds a HTTP handler for '/start'. And '/start' points to '/poll/1/${netX/mac:hexhyp}'. The benefit of it is that human visible documentation can replace the "voodoo" '/poll/1/${netX/mac:hexhyp}' with "friendly" '/start'. Because it is an addition are the existing HTTP handlers not effected, neither the installed deployments effected. Signed-off-by: Geert Stappers --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 18d8e64..fec8e04 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ with your TFTP and Shoelaces server addresses. # dhcp.conf next-server ; if exists user-class and option user-class = "iPXE" { - filename "http:///poll/1/${netX/mac:hexhyp}"; + filename "http:///start"; } else { filename "undionly.kpxe"; } @@ -153,7 +153,7 @@ putting it in `dnsmasq.d/ipxe.conf`: ```txt dhcp-match=set:ipxe,175 # iPXE sends a 175 option. dhcp-boot=tag:!ipxe,undionly.kpxe -dhcp-boot=http:///poll/1/${netX/mac:hexhyp} +dhcp-boot=http:///start ``` The **${netX/mac:hexhyp}** strings represents the MAC address of the booting -- cgit v1.2.3