wok annotate ipxe/stuff/ipxe.cmd @ rev 24042

modified stuff/get-anydesk
author Hans-G?nter Theisgen
date Thu Apr 15 15:26:18 2021 +0100 (4 weeks ago)
parents 4c700cf9a7cd
children
rev   line source
pascal@15368 1 #!ipxe
pascal@15368 2
pascal@15368 3 set menu-timeout 3000
pascal@20188 4 dhcp && isset ${filename} && autoboot ||
pascal@23941 5 console --picture http://mirror.slitaz.org/pxe/ipxe/slitaz.png || console --x 640 --y 480 ||
pascal@15368 6
pascal@15368 7 :menu
pascal@19330 8 menu SliTaz net boot menu
pascal@15385 9 item --key b boot Local boot
pascal@19326 10 item --gap
pascal@20219 11 item --gap Configuration
pascal@20219 12 item --key e exit iPXE command line
pascal@20219 13 item --key c config iPXE configuration
pascal@20219 14 isset ${ip} || goto noip
pascal@20219 15 item --gap
pascal@19326 16 item --gap Network boot
pascal@20219 17 isset ${filename} && item --key l lan Your PXE boot ${filename} ||
pascal@15368 18 item --key w web SliTaz WEB boot
pascal@20219 19 goto endip
pascal@20219 20 :noip
pascal@20219 21 item --key i ipset IP settings
pascal@20219 22 :endip
pascal@15368 23 choose --timeout ${menu-timeout} --default web target || goto exit
pascal@15368 24 set menu-timeout 0
pascal@19323 25 isset ${dns} || set dns 8.8.8.8
pascal@15368 26 goto ${target}
pascal@15368 27
pascal@15385 28 :boot
pascal@15385 29 exit
pascal@15385 30
pascal@15368 31 :exit
pascal@15368 32 help
pascal@15368 33 echo Type 'exit' to get the back to the menu
pascal@15368 34 shell
pascal@15368 35 goto menu
pascal@15368 36
pascal@19326 37 :ipset
pascal@19326 38 echo -n IP address: && read net0/ip
pascal@19326 39 set net0/netmask 255.255.255.0
pascal@19326 40 echo -n Subnet mask: ${} && read net0/netmask
pascal@19326 41 echo -n Default gateway: && read net0/gateway
pascal@19326 42 echo -n DNS server: ${} && read dns
pascal@19326 43 goto menu
pascal@19326 44
pascal@15368 45 :web
pascal@15368 46 imgfree
pascal@15368 47 set weburl http://mirror.slitaz.org/pxe/
pascal@18836 48 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
pascal@18839 49 set weburl http://download.tuxfamily.org/slitaz/pxe/
pascal@18839 50 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
pascal@18851 51 set weburl http://mirror1.slitaz.org/pxe/
pascal@18851 52 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
pascal@18851 53 set weburl http://mirror2.slitaz.org/pxe/
pascal@18851 54 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
pascal@18851 55 set weburl http://mirror3.slitaz.org/pxe/
pascal@18851 56 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
pascal@15368 57 goto menu
pascal@15368 58
pascal@15368 59 :lan
pascal@15368 60 autoboot ||
pascal@15368 61 goto menu
pascal@15368 62
pascal@15368 63 :config
pascal@15368 64 config
pascal@15368 65 goto menu