2016-10-24 21:54:58 +02:00
|
|
|
#!/bin/bash
|
|
|
|
cd /boot
|
|
|
|
if [ -f kernel ];then
|
|
|
|
rm kernel
|
|
|
|
fi
|
|
|
|
yenimodul=`ls -Art /lib/modules/ | tail -n 1`
|
|
|
|
yenikernel=`ls -Art /boot/kernel* | tail -n 1`
|
|
|
|
modulno=`basename $yenimodul`
|
|
|
|
kernelno=`basename $yenikernel`
|
|
|
|
ln -s $kernelno kernel
|
2016-10-24 22:56:28 +02:00
|
|
|
if [ -f initramfs ];then
|
|
|
|
mv initramfs initramfs_eski
|
|
|
|
fi
|
2016-10-24 21:54:58 +02:00
|
|
|
dracut -N --force --xz --omit systemd /boot/initramfs $modulno
|