diff --git a/readme-vars.yml b/readme-vars.yml index e6fa495..d6e6c74 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -113,20 +113,23 @@ app_setup_block: | ``` #### OpenWRT + Add the following lines to DNSMASQ config (e.g. `/etc/dnsmasq.conf`) + ``` + dhcp-match=set:bios,60,PXEClient:Arch:00000 + dhcp-boot=tag:bios,netboot.xyz.kpxe,,YOURSERVERIP + dhcp-match=set:efi32,60,PXEClient:Arch:00002 + dhcp-boot=tag:efi32,netboot.xyz.efi,,YOURSERVERIP + dhcp-match=set:efi32-1,60,PXEClient:Arch:00006 + dhcp-boot=tag:efi32-1,netboot.xyz.efi,,YOURSERVERIP + dhcp-match=set:efi64,60,PXEClient:Arch:00007 + dhcp-boot=tag:efi64,netboot.xyz.efi,,YOURSERVERIP + dhcp-match=set:efi64-1,60,PXEClient:Arch:00008 + dhcp-boot=tag:efi64-1,netboot.xyz.efi,,YOURSERVERIP + dhcp-match=set:efi64-2,60,PXEClient:Arch:00009 + dhcp-boot=tag:efi64-2,netboot.xyz.efi,,YOURSERVERIP + ``` + and then restart the service ``` - uci set dhcp.@dnsmasq[0].dhcp_match=set:bios,60,PXEClient:Arch:00000 - uci set dhcp.@dnsmasq[0].dhcp_boot=tag:bios,netboot.xyz.kpxe,,YOURSERVERIP - uci set dhcp.@dnsmasq[0].dhcp_match=set:efi32,60,PXEClient:Arch:00002 - uci set dhcp.@dnsmasq[0].dhcp_boot=tag:efi32,netboot.xyz.efi,,YOURSERVERIP - uci set dhcp.@dnsmasq[0].dhcp_match=set:efi32-1,60,PXEClient:Arch:00006 - uci set dhcp.@dnsmasq[0].dhcp_boot=tag:efi32-1,netboot.xyz.efi,,YOURSERVERIP - uci set dhcp.@dnsmasq[0].dhcp_match=set:efi64,60,PXEClient:Arch:00007 - uci set dhcp.@dnsmasq[0].dhcp_boot=tag:efi64,netboot.xyz.efi,,YOURSERVERIP - uci set dhcp.@dnsmasq[0].dhcp_match=set:efi64-1,60,PXEClient:Arch:00008 - uci set dhcp.@dnsmasq[0].dhcp_boot=tag:efi64-1,netboot.xyz.efi,,YOURSERVERIP - uci set dhcp.@dnsmasq[0].dhcp_match=set:efi64-2,60,PXEClient:Arch:00009 - uci set dhcp.@dnsmasq[0].dhcp_boot=tag:efi64-2,netboot.xyz.efi,,YOURSERVERIP - uci commit /etc/init.d/dnsmasq restart ```