2018-06-09 00:06:58 +02:00
|
|
|
#!/bin/bash
|
2018-10-12 18:12:08 +02:00
|
|
|
surum=4.18.12
|
2018-06-09 00:06:58 +02:00
|
|
|
sonek=milis
|
|
|
|
depmod ${surum}-$sonek
|
|
|
|
cd /boot
|
|
|
|
[ -L /boot/kernel ] && rm -rf /boot/kernel
|
|
|
|
ln -s kernel-$surum kernel
|
|
|
|
if [ -f initramfs ];then
|
|
|
|
mv initramfs initramfs_eski
|
|
|
|
fi
|
|
|
|
|
|
|
|
[ -f /usr/bin/dracut ] && dracut -N --force --xz --omit systemd --add-drivers "ahci" -f /boot/initramfs $surum-$sonek
|
|
|
|
[ -f /usr/bin/os-prober ] && os-prober
|
|
|
|
|
|
|
|
mkdir -p /boot/grub
|
|
|
|
if [ -f /boot/grub/grub.cfg ];then
|
|
|
|
mv /boot/grub/grub.cfg /boot/grub/grub.cfg.eski
|
|
|
|
fi
|
|
|
|
[ ! -f /boot/grub/grub.cfg.new ] && cp /etc/default/grub/grub.cfg /boot/grub/grub.cfg.new
|
|
|
|
[ ! -d /boot/grub/i386-pc ] && cp -r /usr/lib/grub/i386-pc /boot/grub/
|
|
|
|
[ ! -f /boot/grub/unicode.pf2 ] && cp /usr/share/grub/unicode.pf2 /boot/grub/
|
|
|
|
grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
|
|
|
|
|
cd -
|