SHARE
TWEET

Untitled

a guest May 19th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #This is a really stupid ugly hack
  2. insmod vbe
  3. set gfxmode=800x600
  4. insmod jpeg
  5. terminal_output gfxterm
  6. background_image /usr/share/images/grub/aaron.jpg;
  7.  
  8. read password
  9.  
  10. if [ "${password}" = "password1" ]; then
  11.     root=(hd0,1)
  12. parttool (hd0,2) boot+
  13. parttool (hd0,5) boot-
  14.     chainloader +1
  15. boot
  16. fi
  17.  
  18. if [ "${password}" = "password2" ]; then
  19.     root=(hd0,1)
  20. parttool (hd0,5) boot+
  21. parttool (hd0,2) boot-
  22.     chainloader +1
  23.     boot
  24. fi
  25.  
  26. if [ "${password}" = "oldwindows" ]; then
  27.     root=(hd0,1)
  28.     chainloader +1
  29.     boot
  30. fi
  31.  
  32. if [ "${password}" = "password4" ]; then
  33.     insmod ext2
  34.     set root='(hd0,6)'
  35.     search --no-floppy --fs-uuid --set d852d499-6e4b-43d9-8b2b-af566719ee5c
  36.     linux    /boot/vmlinuz-2.6.31-20-generic-pae root=UUID=d852d499-6e4b-43d9-8b2b-af566719ee5c ro   quiet splash
  37.     initrd    /boot/initrd.img-2.6.31-20-generic-pae
  38. chainloader +1
  39.     boot
  40. fi
  41.  
  42. if [ "${password}" = "password5" ]; then
  43.     insmod ext2
  44.     set root='(hd0,6)'
  45.     search --no-floppy --fs-uuid --set d852d499-6e4b-43d9-8b2b-af566719ee5c
  46.     echo    'Loading Linux 2.6.31-20-generic-pae ...'
  47.     linux    /boot/vmlinuz-2.6.31-20-generic-pae root=UUID=d852d499-6e4b-43d9-8b2b-af566719ee5c ro single
  48.     echo    'Loading initial ramdisk ...'
  49.     initrd    /boot/initrd.img-2.6.31-20-generic-pae
  50.     chainloader +1
  51.     boot
  52. fi
RAW Paste Data
Top