wok rev 7808

grub4dos: add preset menu
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 24 18:31:55 2010 +0100 (2010-12-24)
parents c3596312e06a
children 0f2110b2e71f
files grub4dos/receipt grub4dos/stuff/menu.lst
line diff
     1.1 --- a/grub4dos/receipt	Fri Dec 24 11:47:32 2010 +0000
     1.2 +++ b/grub4dos/receipt	Fri Dec 24 18:31:55 2010 +0100
     1.3 @@ -20,6 +20,7 @@
     1.4  		touch $(basename $i)
     1.5  	done
     1.6  	sh ./configure --prefix=/usr --infodir=/usr/share/info \
     1.7 +	--enable-preset-menu=../stuff/menu.lst \
     1.8  	--without-curses --mandir=/usr/share/man \
     1.9  	$CONFIGURE_ARGS &&
    1.10  	make &&
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/grub4dos/stuff/menu.lst	Fri Dec 24 18:31:55 2010 +0100
     2.3 @@ -0,0 +1,42 @@
     2.4 +pxe detect
     2.5 +configfile
     2.6 +default 0
     2.7 +timeout 1
     2.8 +color yellow/brown light-green/black
     2.9 +
    2.10 +title Grub menu
    2.11 +	errorcheck off
    2.12 +	find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst
    2.13 +	find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst
    2.14 +	find --set-root --ignore-floppies --ignore-cd /boot/menu.lst && configfile /boot/menu.lst
    2.15 +	find --set-root --ignore-floppies --ignore-cd /menu.lst
    2.16 +	errorcheck on
    2.17 +	configfile /menu.lst
    2.18 +
    2.19 +title Windows NT/2K/XP
    2.20 +	find --set-root --ignore-floppies /ntldr
    2.21 +	chainloader /ntldr
    2.22 +
    2.23 +title Windows Vista
    2.24 +	find --set-root --ignore-floppies /bootmgr
    2.25 +	chainloader /bootmgr
    2.26 +	tpm --init
    2.27 +
    2.28 +title Windows 9x
    2.29 +	find --set-root --ignore-floppies /io.sys
    2.30 +	chainloader /io.sys
    2.31 +
    2.32 +title Windows recovery console
    2.33 +	find --set-root --ignore-floppies /cmldr
    2.34 +	chainloader /cmldr
    2.35 +	write 0x7C03 0x63646D63
    2.36 +	write 0x7C07 0x00736E6F
    2.37 +	
    2.38 +title Grub prompt
    2.39 +	commandline
    2.40 +	
    2.41 +title Reboot
    2.42 +	reboot
    2.43 +
    2.44 +title Halt
    2.45 +	halt