40 lines
568 B
Bash
40 lines
568 B
Bash
#!/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
|