wok view ipxe/stuff/ipxe.cmd @ rev 19724

xlockmore: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 16 15:08:07 2017 +0100 (2017-02-16)
parents f080d02e591a
children 35a23f513b71
line source
1 #!ipxe
3 set menu-timeout 3000
4 dhcp && console --picture http://mirror.slitaz.org/pxe/ipxe/slitaz.png ||
6 :menu
7 menu SliTaz net boot menu
8 item --key b boot Local boot
9 item --gap
10 item --gap Network boot
11 item --key l lan Your PXE boot ${filename}
12 item --key w web SliTaz WEB boot
13 item --key r rolling SliTaz development version
14 item --gap
15 item --gap Configuration
16 isset ${ip} || item --key i ipset IP settings
17 item --key c config iPXE configuration
18 item --key e exit iPXE command line
19 choose --timeout ${menu-timeout} --default web target || goto exit
20 set menu-timeout 0
21 isset ${dns} || set dns 8.8.8.8
22 goto ${target}
24 :boot
25 exit
27 :exit
28 help
29 echo Type 'exit' to get the back to the menu
30 shell
31 goto menu
33 :ipset
34 echo -n IP address: && read net0/ip
35 set net0/netmask 255.255.255.0
36 echo -n Subnet mask: ${} && read net0/netmask
37 echo -n Default gateway: && read net0/gateway
38 echo -n DNS server: ${} && read dns
39 goto menu
41 :web
42 isset $(ip} || dhcp || echo No DHCP
43 imgfree
44 set weburl http://mirror.slitaz.org/pxe/
45 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
46 set weburl http://mirror.switch.ch/ftp/mirror/slitaz/pxe/
47 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
48 set weburl http://download.tuxfamily.org/slitaz/pxe/
49 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
50 set weburl http://mirror1.slitaz.org/pxe/
51 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
52 set weburl http://mirror2.slitaz.org/pxe/
53 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
54 set weburl http://mirror3.slitaz.org/pxe/
55 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
56 goto menu
58 :lan
59 isset $(ip} || dhcp || echo No DHCP
60 autoboot ||
61 goto menu
63 :rolling
64 isset $(ip} || dhcp || echo No DHCP
65 sanboot http://mirror.slitaz.org/iso/rolling/slitaz-rolling.iso ||
66 goto menu
68 :config
69 config
70 goto menu