Skip to content

Instantly share code, notes, and snippets.

@Sitwon
Created July 22, 2013 21:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Sitwon/6057801 to your computer and use it in GitHub Desktop.
Save Sitwon/6057801 to your computer and use it in GitHub Desktop.
Boot menu for Slax 7 (my shortened version)
UI /slax/boot/vesamenu.c32
PROMPT 0
TIMEOUT 40
MENU CLEAR
MENU HIDDEN
MENU HIDDENKEY Enter default
MENU BACKGROUND /slax/boot/bootlogo.png
MENU WIDTH 80
MENU MARGIN 20
MENU ROWS 5
MENU TABMSGROW 9
MENU CMDLINEROW 9
MENU HSHIFT 0
MENU VSHIFT 19
MENU COLOR BORDER 30;40 #00000000 #00000000 none
MENU COLOR SEL 47;30 #FF000000 #FFFFFFFF none
MENU COLOR UNSEL 37;40 #FFFFFFFF #FF000000 none
MENU COLOR TABMSG 32;40 #FF60CA00 #FF000000 none
F1 help.txt /slax/boot/zblack.png
MENU AUTOBOOT Press Esc for options, automatic boot in # second{,s} ...
MENU TABMSG [F1] help [Tab] cmdline >
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=
MENU BEGIN 0000
MENU START
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=
LABEL -
MENU LABEL [ ] Persistent changes
MENU GOTO 1000
LABEL -
MENU LABEL [ ] Graphical desktop
MENU GOTO 0100
LABEL -
MENU LABEL [ ] Copy to RAM
MENU GOTO 0010
LABEL -
MENU LABEL [ ] Act as PXE server
MENU GOTO 0001
MENU END
MENU BEGIN 0001
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=pxe
LABEL -
MENU LABEL [ ] Persistent changes
MENU GOTO 1001
LABEL -
MENU LABEL [ ] Graphical desktop
MENU GOTO 0101
LABEL -
MENU LABEL [ ] Copy to RAM
MENU GOTO 0011
LABEL -
MENU LABEL [*] Act as PXE server
MENU GOTO 0000
MENU END
MENU BEGIN 0010
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=toram
LABEL -
MENU LABEL [ ] Persistent changes
MENU GOTO 1010
LABEL -
MENU LABEL [ ] Graphical desktop
MENU GOTO 0110
LABEL -
MENU LABEL [*] Copy to RAM
MENU GOTO 0000
LABEL -
MENU LABEL [ ] Act as PXE server
MENU GOTO 0011
MENU END
MENU BEGIN 0011
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=toram,pxe
LABEL -
MENU LABEL [ ] Persistent changes
MENU GOTO 1011
LABEL -
MENU LABEL [ ] Graphical desktop
MENU GOTO 0111
LABEL -
MENU LABEL [*] Copy to RAM
MENU GOTO 0001
LABEL -
MENU LABEL [*] Act as PXE server
MENU GOTO 0010
MENU END
MENU BEGIN 0100
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=xmode
LABEL -
MENU LABEL [ ] Persistent changes
MENU GOTO 1100
LABEL -
MENU LABEL [*] Graphical desktop
MENU GOTO 0000
LABEL -
MENU LABEL [ ] Copy to RAM
MENU GOTO 0110
LABEL -
MENU LABEL [ ] Act as PXE server
MENU GOTO 0101
MENU END
MENU BEGIN 0101
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=xmode,pxe
LABEL -
MENU LABEL [ ] Persistent changes
MENU GOTO 1101
LABEL -
MENU LABEL [*] Graphical desktop
MENU GOTO 0001
LABEL -
MENU LABEL [ ] Copy to RAM
MENU GOTO 0111
LABEL -
MENU LABEL [*] Act as PXE server
MENU GOTO 0100
MENU END
MENU BEGIN 0110
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=xmode,toram
LABEL -
MENU LABEL [ ] Persistent changes
MENU GOTO 1110
LABEL -
MENU LABEL [*] Graphical desktop
MENU GOTO 0010
LABEL -
MENU LABEL [*] Copy to RAM
MENU GOTO 0100
LABEL -
MENU LABEL [ ] Act as PXE server
MENU GOTO 0111
MENU END
MENU BEGIN 0111
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=xmode,toram,pxe
LABEL -
MENU LABEL [ ] Persistent changes
MENU GOTO 1111
LABEL -
MENU LABEL [*] Graphical desktop
MENU GOTO 0011
LABEL -
MENU LABEL [*] Copy to RAM
MENU GOTO 0101
LABEL -
MENU LABEL [*] Act as PXE server
MENU GOTO 0110
MENU END
MENU BEGIN 1000
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch
LABEL -
MENU LABEL [*] Persistent changes
MENU GOTO 0000
LABEL -
MENU LABEL [ ] Graphical desktop
MENU GOTO 1100
LABEL -
MENU LABEL [ ] Copy to RAM
MENU GOTO 1010
LABEL -
MENU LABEL [ ] Act as PXE server
MENU GOTO 1001
MENU END
MENU BEGIN 1001
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,pxe
LABEL -
MENU LABEL [*] Persistent changes
MENU GOTO 0001
LABEL -
MENU LABEL [ ] Graphical desktop
MENU GOTO 1101
LABEL -
MENU LABEL [ ] Copy to RAM
MENU GOTO 1011
LABEL -
MENU LABEL [*] Act as PXE server
MENU GOTO 1000
MENU END
MENU BEGIN 1010
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,toram
LABEL -
MENU LABEL [*] Persistent changes
MENU GOTO 0010
LABEL -
MENU LABEL [ ] Graphical desktop
MENU GOTO 1110
LABEL -
MENU LABEL [*] Copy to RAM
MENU GOTO 1000
LABEL -
MENU LABEL [ ] Act as PXE server
MENU GOTO 1011
MENU END
MENU BEGIN 1011
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,toram,pxe
LABEL -
MENU LABEL [*] Persistent changes
MENU GOTO 0011
LABEL -
MENU LABEL [ ] Graphical desktop
MENU GOTO 1111
LABEL -
MENU LABEL [*] Copy to RAM
MENU GOTO 1001
LABEL -
MENU LABEL [*] Act as PXE server
MENU GOTO 1010
MENU END
MENU BEGIN 1100
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,xmode
LABEL -
MENU LABEL [*] Persistent changes
MENU GOTO 0100
LABEL -
MENU LABEL [*] Graphical desktop
MENU GOTO 1000
LABEL -
MENU LABEL [ ] Copy to RAM
MENU GOTO 1110
LABEL -
MENU LABEL [ ] Act as PXE server
MENU GOTO 1101
MENU END
MENU BEGIN 1101
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,xmode,pxe
LABEL -
MENU LABEL [*] Persistent changes
MENU GOTO 0101
LABEL -
MENU LABEL [*] Graphical desktop
MENU GOTO 1001
LABEL -
MENU LABEL [ ] Copy to RAM
MENU GOTO 1111
LABEL -
MENU LABEL [*] Act as PXE server
MENU GOTO 1100
MENU END
MENU BEGIN 1110
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,xmode,toram
LABEL -
MENU LABEL [*] Persistent changes
MENU GOTO 0110
LABEL -
MENU LABEL [*] Graphical desktop
MENU GOTO 1010
LABEL -
MENU LABEL [*] Copy to RAM
MENU GOTO 1100
LABEL -
MENU LABEL [ ] Act as PXE server
MENU GOTO 1111
MENU END
MENU BEGIN 1111
LABEL default
MENU LABEL Run Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,xmode,toram,pxe
LABEL -
MENU LABEL [*] Persistent changes
MENU GOTO 0111
LABEL -
MENU LABEL [*] Graphical desktop
MENU GOTO 1011
LABEL -
MENU LABEL [*] Copy to RAM
MENU GOTO 1101
LABEL -
MENU LABEL [*] Act as PXE server
MENU GOTO 1110
MENU END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment