milis/talimatname/genel/k/kernel/kernel.kur-kos

19 lines
518 B
Plaintext
Raw Normal View History

2017-06-03 16:35:21 +02:00
#!/bin/bash
2017-11-16 10:18:08 +01:00
surum=4.13.12
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
grub-mkconfig -o /boot/grub/grub.cfg
fi
cd -