blob: f16c3a00b9c4fc34c0a10088a82eaac79aef74a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
set timeout=1 //seconds
if loadfont ${prefix}/fonts/unicode.pf2
insmod efi_gop
insmod efi_uga
insmod vbe
insmod font
then
insmod gfxterm
#set gfxmode=auto
set gfxmode=640x480
set gfxpayload=keep
terminal_output gfxterm
fi
menuentry "FoolOS (1920x1080x32)" {
multiboot /boot/foolos.bin
set gfxpayload=1920x1080x32
module /boot/ext2.img
}
menuentry "FoolOS (640x480x32)" {
multiboot /boot/foolos.bin
set gfxpayload=640x480x32
module /boot/ext2.img
}
menuentry "FoolOS (textmode)" {
multiboot /boot/foolos.bin
set gfxpayload=text
module /boot/ext2.img
}
menuentry "FoolOS (2560x1600x32)" {
multiboot /boot/foolos.bin
set gfxpayload=2560x1600x32
module /boot/ext2.img
}
menuentry "FoolOS (no gfxpayload)" {
multiboot /boot/foolos.bin
module /boot/ext2.img
}
menuentry "FoolOS (gfxpayload=keep)" {
multiboot /boot/foolos.bin
set gfxpayload=keep
module /boot/ext2.img
}
menuentry "FoolOS (Custom Resolution)" {
set pager=1
echo "MODES SUPPORTED:"
vbeinfo
set pager=0
echo "BOOT WITH CUSTOM RESOLUTION/DEPTH:"
echo "width:"
read __width
echo "...OK"
echo "height:"
read __height
echo "...OK"
echo "bits per pixel / depth:"
read __bpp
echo "...OK"
echo "booting with ${__width}x${__height}x${__bpp} ..."
multiboot /boot/foolos.bin
set gfxpayload=${__width}x${__height}x${__bpp}
module /boot/ext2.img
}
|