summaryrefslogtreecommitdiffstats
path: root/server/ipxe/registration.ipxe
diff options
context:
space:
mode:
Diffstat (limited to 'server/ipxe/registration.ipxe')
-rw-r--r--server/ipxe/registration.ipxe21
1 files changed, 15 insertions, 6 deletions
diff --git a/server/ipxe/registration.ipxe b/server/ipxe/registration.ipxe
index 53f4b01..505d72f 100644
--- a/server/ipxe/registration.ipxe
+++ b/server/ipxe/registration.ipxe
@@ -9,15 +9,16 @@ set crosscert http://ca.ipxe.org/auto/
:start
menu Initializing client registration
-item --key a automatic Automatic registration
+item --key a automatic Automatic Registration
+item --key c customname Automatic Registration (Custom Name)
+item --key m manual Manual Registration
item --key k key Replace Secure Boot Keys
-item --key m manual Manual registration
item --key l localboot Localboot
item --key r reboot Reboot
item --key p poweroff Power Off
item --key s sh [Shell]
item --key u update Reload Menufile
-choose --default automatic --timeout 15000 target && goto ${target} || goto automatic
+choose --default automatic --timeout 25000 target && goto ${target} || goto automatic
:localboot
exit0 ||
@@ -28,10 +29,15 @@ goto start
params
param ipxe true
param client { "type": "CLIENT", "uuid": "${uuid}", "purpose": "Pool PC", "networks": [{ "ip": "${net0/ip}", "mac": "${net0/mac}" }] }
-chain https://bas.intra.uni-freiburg.de/api/registration##params
+chain https://bas.intra.uni-freiburg.de/api/registration/clients##params
-:key
-chain -ar http://132.230.4.6/tbk/ReplaceKeysWithOwnKeys.efi
+:customname
+echo Enter client name
+read clientname
+params
+param ipxe true
+param client { "name": "${clientname}", "type": "CLIENT", "uuid": "${uuid}", "purpose": "Pool PC", "networks": [{ "ip": "${net0/ip}", "mac": "${net0/mac}" }] }
+chain https://bas.intra.uni-freiburg.de/api/registration/clients##params
:manual
params
@@ -39,6 +45,9 @@ param id 0
chain https://bas.intra.uni-freiburg.de/api/registration/group##params ||
goto start
+:key
+chain -ar http://132.230.4.6/tbk/ReplaceKeysWithOwnKeys.efi
+
:reboot
reboot