Make the "||" and "&&" operators available within iPXE commands. For example: dhcp net0 || set net0/ip 192.168.0.2 would attempt to acquire an IP address via DHCP, falling back to a static address if DHCP fails. As a side-effect, comments may now be appended to any line. For example: dhcp net0 || set net0/ip 192.168.0.2 # Try DHCP first, then static Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
58 |
|
58 |
|
59 |
|
59 |
|
60 |
|
60 |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
61 |
|
65 |
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
|
66 |
|
|
67 |
|
67 |
|
68 |
|
68 |
|
69 |
|
69 |
|
|
|
||
156 |
|
156 |
|
157 |
|
157 |
|
158 |
|
158 |
|
159 |
|
|
|
|
159 |
|
|
160 |
|
160 |
|
161 |
|
|
|
162 |
|
|
|
163 |
|
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
|
|
164 |
|
164 |
|
165 |
|
|
|
166 |
|
|
|
|
165 |
|
|
|
166 |
|
|
167 |
|
167 |
|
168 |
|
168 |
|
169 |
|
|
|
170 |
|
|
|
|
169 |
|
|
|
170 |
|
|
171 |
|
171 |
|
172 |
|
172 |
|
173 |
|
173 |
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
178 |
|
178 |
|
179 |
|
179 |
|
180 |
|
|
|
|
180 |
|
|
181 |
|
181 |
|
182 |
|
182 |
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
186 |
|
186 |
|
187 |
|
|
|
188 |
|
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
|
|
|
197 |
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
|
|
|
207 |
|
|
|
208 |
|
|
|
209 |
|
|
|
210 |
|
|
|
211 |
|
|
|
212 |
|
|
|
213 |
|
|
|
214 |
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
|
|
|
218 |
|
|
|
219 |
|
|
|
220 |
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
|
|
|
224 |
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
|
|
|
228 |
|
|
|
229 |
|
|
|
230 |
|
|
|
231 |
|
|
|
232 |
|
|
|
233 |
|
|
|
234 |
|
|
|
235 |
|
|
|
236 |
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
|
|
|
240 |
|
|
|
241 |
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
189 |
|
249 |
|
190 |
|
250 |
|
191 |
|
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
192 |
|
255 |
|
193 |
|
256 |
|
194 |
|
257 |
|
|
|
||
200 |
|
263 |
|
201 |
|
264 |
|
202 |
|
265 |
|
203 |
|
|
|
|
266 |
|
|
|
267 |
|
|
|
268 |
|
|
204 |
|
269 |
|
|
270 |
|
|
205 |
|
271 |
|
206 |
|
272 |
|
207 |
|
273 |
|
208 |
|
|
|
209 |
|
|
|
|
274 |
|
|
|
275 |
|
|
210 |
|
276 |
|
211 |
|
277 |
|
212 |
|
|
|
213 |
|
|
|
|
278 |
|
|
|
279 |
|
|
214 |
|
280 |
|
215 |
|
|
|
216 |
|
|
|
217 |
|
|
|
|
281 |
|
|
|
282 |
|
|
|
283 |
|
|
218 |
|
284 |
|
219 |
|
|
|
220 |
|
|
|
|
285 |
|
|
|
286 |
|
|
|
287 |
|
|
|
288 |
|
|
221 |
|
289 |
|
222 |
|
|
|
|
290 |
|
|
|
291 |
|
|
|
292 |
|
|
|
293 |
|
|
|
294 |
|
|
223 |
|
295 |
|
|
296 |
|
|
|
297 |
|
|
|
298 |
|
|
|
299 |
|
|
|
300 |
|
|
224 |
|
301 |
|
225 |
|
302 |
|
226 |
|
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
227 |
|
306 |
|
228 |
|
307 |
|
229 |
|
308 |
|