Advertisement
Guest User

menu.lst

a guest
Jul 2nd, 2019
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.93 KB | None | 0 0
  1. color black/cyan yellow/cyan
  2. timeout 10
  3.  
  4. #graphicsmode 0x6A
  5. graphicsmode -1 640 480:800 24:32 || graphicsmode -1
  6. ## Menu AutoNumber
  7. write 0x8274 0x2001
  8.  
  9. #graphicsmode -1 800:640 -1 24:32 || graphicsmode -1
  10. #font /unifont.hex.gz
  11.  
  12.  
  13. #clear mappings and set root in case we return from bootmgr
  14. map --unmap=0:0xff
  15. map --unhook
  16. map --rehook
  17. ls /usbdrive.tag > nul || find --set-root --devices=hf /usbdrive.tag > nul
  18. ls /default > nul && default /default
  19.  
  20.  
  21.  
  22. title LXLE 16.04.3 64-Bit
  23. map --unmap=0:0xff
  24. map --unhook && map --rehook
  25. cat --hex --locate=PoLPu@ (md)0x3D0+0x130 > nul && echo Cannot continue if PLoP is active, please start this entry without loading PLoP first && echo && pause Press any key to return to the main menu && configfile /menu.lst
  26. set /a dev=*0x8280&0xff
  27. root (%dev%,0)
  28. set ISO=/ISO/lxle_16.04.3_64.iso
  29. ls %ISO% > nul || find --set-root --devices=hf /usbdrive.tag|| echo Error! Could not find usbdrive.tag && echo  && pause Press any key to return to the main menu && configfile /menu.lst
  30. ls %ISO% > nul || find --set-root --devices=hf %ISO% || echo Error! Could not find %ISO% && echo  && pause Press any key to return to the main menu && configfile /menu.lst
  31. map %ISO% (0xff) || map --heads=0 --sectors-per-track=0 %ISO% (0xff) || echo FATAL ERROR mapping %ISO%, please check if file is present and defragmented && pause Press any key to return to main menu && configfile /menu.lst
  32. #http://reboot.pro/topic/9916-grub4dos-isohybrided/page-2#entry88531
  33. #http://www.rmprepusb.com/tutorials/tails
  34. set /a dev=*0x82a0&0xff
  35. debug 1
  36. parttype (%dev%,3) | set check=
  37. debug off
  38. set check=%check:~-5,4%
  39. if "%check%"=="0x00" partnew (%dev%,3) 0 0 0 && partnew (%dev%,3) 0x00 %ISO%
  40. if not "%check%"=="0x00" echo WARNING: PARTITION TABLE 4 IN BIOS DEVICE %dev% IS ALREADY IN USE! && echo  && echo To prevent possible data loss will not continue further && pause && configfile /menu.lst
  41. map --rehook
  42. root (0xff)
  43. chainloader (0xff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement