2017-06-03 16:35:21 +02:00
|
|
|
#!/bin/bash
|
2018-01-20 23:10:04 +01:00
|
|
|
surum=4.14.14
|
2017-06-03 16:41:45 +02:00
|
|
|
sonek=milis
|
2017-11-16 10:18:08 +01:00
|
|
|
depmod ${surum}-$sonek
|
2017-06-03 16:35:21 +02:00
|
|
|
cd /boot
|
2017-11-16 10:18:08 +01:00
|
|
|
[ -L /boot/kernel ] && rm -rf /boot/kernel
|
2017-06-03 16:35:21 +02:00
|
|
|
ln -s kernel-$surum kernel
|
|
|
|
if [ -f initramfs ];then
|
|
|
|
mv initramfs initramfs_eski
|
|
|
|
fi
|
2017-11-16 10:18:08 +01:00
|
|
|
|
|
|
|
[ -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
|
|
|
|
if [ -f /usr/bin/grub-mkconfig ];then
|
|
|
|
[ -f /boot/grub/grub.cfg ] && mv /boot/grub/grub.cfg /boot/grub/grub.cfg.eski
|
2018-01-20 23:10:04 +01:00
|
|
|
[ ! -f /boot/grub/grub.cfg.new ] && cp /etc/default/grub/grub.cfg /boot/grub/grub.cfg.new
|
2017-11-16 10:18:08 +01:00
|
|
|
grub-mkconfig -o /boot/grub/grub.cfg
|
|
|
|
fi
|
|
|
|
cd -
|