forked from alnux/repo
Compare commits
4 commits
787736fb5a
...
a20ebc20b2
Author | SHA1 | Date | |
---|---|---|---|
|
a20ebc20b2 | ||
|
1ca3b85479 | ||
|
4111d41ef2 | ||
298d700fbc |
4 changed files with 46 additions and 13 deletions
6
grub-configmake/package
Executable file
6
grub-configmake/package
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#Made By Ohio2
|
||||||
|
pkg_config_deploy=true
|
||||||
|
pkg_config_ver="0.2"
|
||||||
|
pkg_config_name="grub-configmake"
|
||||||
|
pkg_config_makedepends=""
|
||||||
|
pkg_config_depends=""
|
40
grub-configmake/payload/usr/bin/grub-configmake
Normal file
40
grub-configmake/payload/usr/bin/grub-configmake
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
#!/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
|
|
@ -1,5 +0,0 @@
|
||||||
pkg_config_deploy=true
|
|
||||||
pkg_config_ver="0.2"
|
|
||||||
pkg_config_name="grub-defconfig"
|
|
||||||
pkg_config_makedepends=""
|
|
||||||
pkg_config_depends=""
|
|
|
@ -1,8 +0,0 @@
|
||||||
set timeout=15
|
|
||||||
set default=0
|
|
||||||
|
|
||||||
menuentry "Alnux" {
|
|
||||||
# you will probably want to change the root below...
|
|
||||||
linux /boot/bzImage noapic root=/dev/sda1 init=/usr/bin/hummingbird
|
|
||||||
boot
|
|
||||||
}
|
|
Loading…
Reference in a new issue