23 lines
503 B
Bash
Executable file
23 lines
503 B
Bash
Executable file
KVERSION=$(readlink /boot/vmlinuz)
|
|
KVERSION=${KVERSION#vmlinuz-}
|
|
|
|
# configure grub
|
|
|
|
[ -d /boot/grub ] || mkdir -p /boot/grub
|
|
|
|
echo "
|
|
timeout 3
|
|
|
|
title Silicann - ein neuronales Netz
|
|
kernel /boot/vmlinuz-${KVERSION} root=/dev/hdc
|
|
initrd /boot/initrd-${KVERSION}
|
|
" >/boot/grub/menu.lst
|
|
|
|
|
|
# configure mkinitrd
|
|
sed -i 's/^ROOT=.*$/ROOT=iso9660/' /etc/mkinitrd/mkinitrd.conf
|
|
sed -i 's/^MODULES=.*$/MODULES=dep/' /etc/mkinitrd/mkinitrd.conf
|
|
|
|
# create initrd
|
|
mkinitrd -o /boot/initrd-${KVERSION} ${KVERSION}
|
|
|