repo/grub-configmake/payload/usr/bin/grub-configmake

40 lines
568 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
echo -ne 'Running grub-configmake by ohio2'\\r
echo -ne '.'\\r
wait 0.5
echo -ne '.'\\r
wait 0.5
echo -ne '.'\\r
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo
read -p "What drive do you want to set root to? (Only <number> otherwise it won't work.)" root
cat > /boot/grub/grub.cfg << "EOF"
set default=0
set timeout=5
insmod ext2
set root=(hd0,${root})
menuentry "Alnux+Busybox/Linux" {
linux /boot/bzImage root=/dev/sda${root} rw
}
EOF
echo
echo
echo
echo
echo
echo
echo
echo
echo "grub-configmake by ohio2 completed it's job"
exit 0