diff options
Diffstat (limited to 'internal/polling/polling.go')
| -rw-r--r-- | internal/polling/polling.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/internal/polling/polling.go b/internal/polling/polling.go index cfd489f..7b1235b 100644 --- a/internal/polling/polling.go +++ b/internal/polling/polling.go @@ -42,16 +42,20 @@ const ( "#\n" + "# Do\n" + "# curl http://{{.baseURL}}/poll/1/06-66-de-ad-be-ef\n" + - "# to get an idea about what iPXE will receive.\n" + "# to get an idea about what the iPXE client will receive.\n" maxRetry = 10 retryScript = "#!ipxe\n" + - "prompt --key 0x02 --timeout 10000 shoelaces: Press Ctrl-B for manual override... && " + - "chain -ar http://{{.baseURL}}/ipxemenu || " + - "chain -ar http://{{.baseURL}}/poll/1/{{.macAddress}}\n" + "prompt --key 0x02 --timeout 7000 shoelaces: Press Ctrl-B for manual override... \\\n" + + " && chain -ar http://{{.baseURL}}/ipxemenu \\\n" + + " || chain -ar http://{{.baseURL}}/poll/1/{{.macAddress}}\n\n" + + "# Note: the iPXE client will see the above code as an endless loop.\n" + + "# However, Shoelaces will break that loop after a fixed number of retries.\n" timeoutScript = "#!ipxe\n" + + "echo\n" + + "echo Shoelaces reached the maximum number of retries\n" + "exit\n" // BootAction is used when a user selects a script for the polling |
