wok view ipxe/stuff/ipxe.cmd @ rev 23630
updated sarg and sarg-php (2.3.11 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 17 08:01:58 2020 +0100 (2020-04-17) |
parents | 3fe265729ca7 |
children | 4c700cf9a7cd |
line source
1 #!ipxe
3 set menu-timeout 3000
4 dhcp && isset ${filename} && autoboot ||
5 console --picture http://mirror.slitaz.org/pxe/ipxe/slitaz.png ||
7 :menu
8 menu SliTaz net boot menu
9 item --key b boot Local boot
10 item --gap
11 item --gap Configuration
12 item --key e exit iPXE command line
13 item --key c config iPXE configuration
14 isset ${ip} || goto noip
15 item --gap
16 item --gap Network boot
17 isset ${filename} && item --key l lan Your PXE boot ${filename} ||
18 item --key w web SliTaz WEB boot
19 item --key r rolling SliTaz development version
20 goto endip
21 :noip
22 item --key i ipset IP settings
23 :endip
24 choose --timeout ${menu-timeout} --default web target || goto exit
25 set menu-timeout 0
26 isset ${dns} || set dns 8.8.8.8
27 goto ${target}
29 :boot
30 exit
32 :exit
33 help
34 echo Type 'exit' to get the back to the menu
35 shell
36 goto menu
38 :ipset
39 echo -n IP address: && read net0/ip
40 set net0/netmask 255.255.255.0
41 echo -n Subnet mask: ${} && read net0/netmask
42 echo -n Default gateway: && read net0/gateway
43 echo -n DNS server: ${} && read dns
44 goto menu
46 :web
47 imgfree
48 set weburl http://mirror.slitaz.org/pxe/
49 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
50 set weburl http://mirror.switch.ch/ftp/mirror/slitaz/pxe/
51 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
52 set weburl http://download.tuxfamily.org/slitaz/pxe/
53 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
54 set weburl http://mirror1.slitaz.org/pxe/
55 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
56 set weburl http://mirror2.slitaz.org/pxe/
57 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
58 set weburl http://mirror3.slitaz.org/pxe/
59 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
60 goto menu
62 :lan
63 autoboot ||
64 goto menu
66 :rolling
67 sanboot http://mirror.slitaz.org/iso/rolling/slitaz-rolling.iso ||
68 goto menu
70 :config
71 config
72 goto menu