Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This is a really stupid ugly hack
- insmod vbe
- set gfxmode=800x600
- insmod jpeg
- terminal_output gfxterm
- background_image /usr/share/images/grub/aaron.jpg;
- read password
- if [ "${password}" = "password1" ]; then
- root=(hd0,1)
- parttool (hd0,2) boot+
- parttool (hd0,5) boot-
- chainloader +1
- boot
- fi
- if [ "${password}" = "password2" ]; then
- root=(hd0,1)
- parttool (hd0,5) boot+
- parttool (hd0,2) boot-
- chainloader +1
- boot
- fi
- if [ "${password}" = "oldwindows" ]; then
- root=(hd0,1)
- chainloader +1
- boot
- fi
- if [ "${password}" = "password4" ]; then
- insmod ext2
- set root='(hd0,6)'
- search --no-floppy --fs-uuid --set d852d499-6e4b-43d9-8b2b-af566719ee5c
- linux /boot/vmlinuz-2.6.31-20-generic-pae root=UUID=d852d499-6e4b-43d9-8b2b-af566719ee5c ro quiet splash
- initrd /boot/initrd.img-2.6.31-20-generic-pae
- chainloader +1
- boot
- fi
- if [ "${password}" = "password5" ]; then
- insmod ext2
- set root='(hd0,6)'
- search --no-floppy --fs-uuid --set d852d499-6e4b-43d9-8b2b-af566719ee5c
- echo 'Loading Linux 2.6.31-20-generic-pae ...'
- linux /boot/vmlinuz-2.6.31-20-generic-pae root=UUID=d852d499-6e4b-43d9-8b2b-af566719ee5c ro single
- echo 'Loading initial ramdisk ...'
- initrd /boot/initrd.img-2.6.31-20-generic-pae
- chainloader +1
- boot
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement