Skip to content
This repository was archived by the owner on Jul 5, 2025. It is now read-only.

Commit d823a3a

Browse files
committed
add UEFI settings by default
1 parent 3aa8290 commit d823a3a

File tree

2 files changed

+40
-10
lines changed

2 files changed

+40
-10
lines changed

README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,21 +110,36 @@ Set both the option for "TFTP Server" and the options under the Advanced "Networ
110110

111111
#### DD-WRT
112112
Administration->Services -> Additional DNSMasq Options
113-
Set the following line:
113+
Set the following lines:
114114
```
115-
dhcp-boot=netboot.xyz.kpxe,,YOURSERVERIP
115+
dhcp-match=set:bios,60,PXEClient:Arch:00000
116+
dhcp-boot=tag:bios,netboot.xyz.kpxe,,YOURSERVERIP
117+
dhcp-match=set:efi32,60,PXEClient:Arch:00006
118+
dhcp-boot=tag:efi32,netboot.xyz.efi,,YOURSERVERIP
119+
dhcp-match=set:efi64,60,PXEClient:Arch:00009
120+
dhcp-boot=tag:efi64,netboot.xyz.efi,,YOURSERVERIP
116121
```
117122

118123
#### Tomato
119124
Advanced -> DHCP/DNS -> Dnsmasq Custom configuration
120-
Set the following line:
125+
Set the following lines:
121126
```
122-
dhcp-boot=netboot.xyz.kpxe,,YOURSERVERIP
127+
dhcp-match=set:bios,60,PXEClient:Arch:00000
128+
dhcp-boot=tag:bios,netboot.xyz.kpxe,,YOURSERVERIP
129+
dhcp-match=set:efi32,60,PXEClient:Arch:00006
130+
dhcp-boot=tag:efi32,netboot.xyz.efi,,YOURSERVERIP
131+
dhcp-match=set:efi64,60,PXEClient:Arch:00009
132+
dhcp-boot=tag:efi64,netboot.xyz.efi,,YOURSERVERIP
123133
```
124134

125135
#### OpenWRT
126136
```
127-
uci set dhcp.@dnsmasq[0].dhcp_boot=netboot.xyz.kpxe,,YOURSERVERIP
137+
uci set dhcp.@dnsmasq[0].dhcp_match=set:bios,60,PXEClient:Arch:00000
138+
uci set dhcp.@dnsmasq[0].dhcp_boot=tag:bios,netboot.xyz.kpxe,,YOURSERVERIP
139+
uci set dhcp.@dnsmasq[0].dhcp_match=set:efi32,60,PXEClient:Arch:00006
140+
uci set dhcp.@dnsmasq[0].dhcp_boot=tag:efi32,netboot.xyz.efi,,YOURSERVERIP
141+
uci set dhcp.@dnsmasq[0].dhcp_match=set:efi64,60,PXEClient:Arch:00009
142+
uci set dhcp.@dnsmasq[0].dhcp_boot=tag:efi64,netboot.xyz.efi,,YOURSERVERIP
128143
uci commit
129144
/etc/init.d/dnsmasq restart
130145
```

readme-vars.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,36 @@ app_setup_block: |
4141
4242
#### DD-WRT
4343
Administration->Services -> Additional DNSMasq Options
44-
Set the following line:
44+
Set the following lines:
4545
```
46-
dhcp-boot=netboot.xyz.kpxe,,YOURSERVERIP
46+
dhcp-match=set:bios,60,PXEClient:Arch:00000
47+
dhcp-boot=tag:bios,netboot.xyz.kpxe,,YOURSERVERIP
48+
dhcp-match=set:efi32,60,PXEClient:Arch:00006
49+
dhcp-boot=tag:efi32,netboot.xyz.efi,,YOURSERVERIP
50+
dhcp-match=set:efi64,60,PXEClient:Arch:00009
51+
dhcp-boot=tag:efi64,netboot.xyz.efi,,YOURSERVERIP
4752
```
4853
4954
#### Tomato
5055
Advanced -> DHCP/DNS -> Dnsmasq Custom configuration
51-
Set the following line:
56+
Set the following lines:
5257
```
53-
dhcp-boot=netboot.xyz.kpxe,,YOURSERVERIP
58+
dhcp-match=set:bios,60,PXEClient:Arch:00000
59+
dhcp-boot=tag:bios,netboot.xyz.kpxe,,YOURSERVERIP
60+
dhcp-match=set:efi32,60,PXEClient:Arch:00006
61+
dhcp-boot=tag:efi32,netboot.xyz.efi,,YOURSERVERIP
62+
dhcp-match=set:efi64,60,PXEClient:Arch:00009
63+
dhcp-boot=tag:efi64,netboot.xyz.efi,,YOURSERVERIP
5464
```
5565
5666
#### OpenWRT
5767
```
58-
uci set dhcp.@dnsmasq[0].dhcp_boot=netboot.xyz.kpxe,,YOURSERVERIP
68+
uci set dhcp.@dnsmasq[0].dhcp_match=set:bios,60,PXEClient:Arch:00000
69+
uci set dhcp.@dnsmasq[0].dhcp_boot=tag:bios,netboot.xyz.kpxe,,YOURSERVERIP
70+
uci set dhcp.@dnsmasq[0].dhcp_match=set:efi32,60,PXEClient:Arch:00006
71+
uci set dhcp.@dnsmasq[0].dhcp_boot=tag:efi32,netboot.xyz.efi,,YOURSERVERIP
72+
uci set dhcp.@dnsmasq[0].dhcp_match=set:efi64,60,PXEClient:Arch:00009
73+
uci set dhcp.@dnsmasq[0].dhcp_boot=tag:efi64,netboot.xyz.efi,,YOURSERVERIP
5974
uci commit
6075
/etc/init.d/dnsmasq restart
6176
```

0 commit comments

Comments
 (0)