wok-current view ipxe/stuff/ipxe.cmd @ rev 24130

Add tnylpo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 18 14:47:15 2021 +0000 (2021-10-18)
parents 4c700cf9a7cd
children
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 || console --x 640 --y 480 ||
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 goto endip
20 :noip
21 item --key i ipset IP settings
22 :endip
23 choose --timeout ${menu-timeout} --default web target || goto exit
24 set menu-timeout 0
25 isset ${dns} || set dns 8.8.8.8
26 goto ${target}
28 :boot
29 exit
31 :exit
32 help
33 echo Type 'exit' to get the back to the menu
34 shell
35 goto menu
37 :ipset
38 echo -n IP address: && read net0/ip
39 set net0/netmask 255.255.255.0
40 echo -n Subnet mask: ${} && read net0/netmask
41 echo -n Default gateway: && read net0/gateway
42 echo -n DNS server: ${} && read dns
43 goto menu
45 :web
46 imgfree
47 set weburl http://mirror.slitaz.org/pxe/
48 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
49 set weburl http://download.tuxfamily.org/slitaz/pxe/
50 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
51 set weburl http://mirror1.slitaz.org/pxe/
52 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
53 set weburl http://mirror2.slitaz.org/pxe/
54 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
55 set weburl http://mirror3.slitaz.org/pxe/
56 chain --autofree ${weburl}ipxe/menu.ipxe && boot ||
57 goto menu
59 :lan
60 autoboot ||
61 goto menu
63 :config
64 config
65 goto menu