Zack Williams | 9f896c4 | 2020-10-05 21:59:11 -0700 | [diff] [blame] | 1 | #!ipxe |
| 2 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
Zack Williams | 2e46971 | 2022-01-26 18:11:09 -0700 | [diff] [blame] | 5 | # autoconfigure interface, or optionaly drop to shell |
| 6 | ifconf || goto optional_shell |
Zack Williams | 9f896c4 | 2020-10-05 21:59:11 -0700 | [diff] [blame] | 7 | |
Zack Williams | 2e46971 | 2022-01-26 18:11:09 -0700 | [diff] [blame] | 8 | # display network settings before chainloading |
| 9 | ifstat |
| 10 | route |
| 11 | |
| 12 | # chainload netboot.ipxe, or continue if not available |
| 13 | chain http://webserver/boot.ipxe || goto optional_shell |
| 14 | |
| 15 | # if unable to chainload, wait 10 seconds for command entry, or exit iPXE and continue boot |
| 16 | :optional_shell |
| 17 | prompt --timeout 10000 Press any key for iPXE command line... && shell || exit |