|
|
原帖由 ggmm888 于 2010-10-17 11:54 发表 
grldr 和wenv都是今天17日,grldr支持图像了,菜单里面的代码需要变吗?
grldr的9月16日可以支持的wenv命令的菜单,grldru新版的不能使用了
菜单是:
title 1: 直接输入路径,回车运行IMG或ISO菜单
command --set-path=/boot/grub/
WENV set path=$U,$input,Input the path,begin with "/" :
WENV run find --set-root ${path}
WENV run pause --wait=0 Now loading ${path} ...
WENV set de=${path:-3:3}
WENV ${de}<>ISO && WENV run map --mem ${path} (fd0) && map --hook && rootnoverify (fd0) && chainloader (fd0)+1 && boot
WENV ${de}==ISO && WENV run map --mem ${path} (0xff) && map --hook && chainloader (0xff) && boot
kernel
新版WENV命令改了 用下面这个应该正常
title 1: 直接输入路径,回车运行IMG或ISO菜单
checkrange 0x9f read 0x8280 && command --set-path=(cd)/BOOT/GRUB
checkrange 0x23 read 0x8280 && command --set-path=(ud)/BOOT/GRUB
checkrange 0x80 read 0x8280 && map (hd0) (hd-1) && map (hd1) (hd0) && map --rehook
checkrange 0x80 read 0x8280 && root (hd-1,0) && command --set-path=(hd-1,0)/BOOT/GRUB
WENV set path=$U,$input,Input the path,begin with "/" :
WENV check ${path:0:1}<>/ set path=/${path}
WENV call find --set-root --ignore-floppies ${path} ]]| pause File not found,Press any key to return... ]]& configfile (md)4+1
WENV call echo Now loading ${path} ...\n
WENV set de=${path##.}
WENV check ${de}<>ISO call map --mem ${path} (fd0) && map --hook && rootnoverify (fd0) && chainloader (fd0)+1 && boot
WENV check ${de}==ISO call map --mem ${path} (0xff) && map --hook && chainloader (0xff) && boot
kernel || echo Unknown error :( :( :( |
|