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

Up sudo (CVE-2025-[32462,32463])
author Stanislas Leduc <shann@slitaz.org>
date Tue Jul 01 07:20:46 2025 +0000 (12 days ago)
parents 1c7a2bb8afc7
children
line source
1 #!ipxe
3 set weburl http://mirror.slitaz.org/pxe/ipxe/menu.ipxe
4 set menu-timeout 3000
5 dhcp && isset ${filename} && autoboot ||
6 console --picture http://mirror.slitaz.org/pxe/ipxe/slitaz.png || console --x 640 --y 480 ||
8 :menu
9 menu SliTaz net boot menu
10 item --key b boot Local boot
11 item --gap
12 item --gap Configuration
13 item --key e exit iPXE command line
14 item --key c config iPXE configuration
15 item --key s wset Set default iPXE server (${weburl})
16 isset ${ip} || goto noip
17 item --gap
18 item --gap Network boot
19 isset ${filename} && item --key l lan Your PXE boot ${filename} ||
20 item --key w web SliTaz WEB boot
21 goto endip
22 :noip
23 item --key i ipset IP settings
24 :endip
25 choose --timeout ${menu-timeout} --default web target || goto exit
26 set menu-timeout 0
27 isset ${dns} || set dns 8.8.8.8
28 goto ${target}
30 :boot
31 exit
33 :exit
34 help
35 echo Type 'exit' to get the back to the menu
36 shell
37 goto menu
39 :ipset
40 echo -n IP address: && read net0/ip
41 set net0/netmask 255.255.255.0
42 echo -n Subnet mask: ${} && read net0/netmask
43 echo -n Default gateway: && read net0/gateway
44 echo -n DNS server: ${} && read dns
45 goto menu
47 :wset
48 echo -n New iPXE server url: && read weburl
49 goto menu
51 :web
52 imgfree
53 chain --autofree ${weburl} && boot ||
54 set weburl http://download.tuxfamily.org/slitaz/pxe/ipxe/menu.ipxe
55 chain --autofree ${weburl} && boot ||
56 set weburl http://mirror1.slitaz.org/pxe/ipxe/menu.ipxe
57 chain --autofree ${weburl} && boot ||
58 set weburl http://mirror2.slitaz.org/pxe/ipxe/menu.ipxe
59 chain --autofree ${weburl} && boot ||
60 set weburl http://mirror3.slitaz.org/pxe/ipxe/menu.ipxe
61 chain --autofree ${weburl} && boot ||
62 goto menu
64 :lan
65 autoboot ||
66 goto menu
68 :config
69 config
70 goto menu