summaryrefslogblamecommitdiffstats
path: root/server/ipxe/registration.ipxe
blob: 537cb5891f1c23ec71cfd9bc2f23c1620e42a989 (plain) (tree)
1
2
3
4
5
6
7
8
      




                                                                  

                                                              


                                     
                                             
                                         
                                        



                                
                                   
                                                                                     





          

          


                     
                     
                                                                    
 


                                                           
       
      
          
                                                                         








          







                                            
     


                           
#!ipxe

# Wallpaper
set crosscert http://ca.ipxe.org/auto/
#set img https://ife-server.com/b4db0y/ipxeWallpaper4.png || shell
#set img tftp://bas.stfu-kthx.net/ipxeWallpaper4.png || shell
#set img tftp://10.8.102.124/ipxeWallpaper3_scale.png || shell
#console --picture ${img} --x 800 --y 600 || shell

:start
menu Initializing client registration
item --key a automatic Automatic 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

:localboot
exit0 ||
exit1 ||
goto start

:automatic
params
param mac ${net0/mac}
param uuid ${uuid}
param ip ${net0/ip}
param purpose Pool PC
chain https://bas.intra.uni-freiburg.de/api/registration/add##params

:key
chain -ar http://132.230.4.6/tbk/ReplaceKeysWithOwnKeys.efi

:manual
params
param id 0
chain https://bas.intra.uni-freiburg.de/api/registration/group##params ||
goto start

:reboot
reboot

:poweroff
poweroff

:sh
login
#echo Enter the password to access the shell
#read pw
#iseq ${pw} shell || goto start
#clear pw
iseq ${password} sh || goto start
clear username
clear password
shell

:update
chain -ar registration.ipxe