manjaro-fix

This commit is contained in:
simono41 2018-08-21 22:10:02 +02:00
parent 50b4350f09
commit 6469b7e2c4

View file

@ -2,13 +2,16 @@
set -ex set -ex
kernel1="$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)" kernel1="$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)"
linuz1="$(find /boot/ -name "vmlinuz*")" linuz1="$(echo $(find /boot/ -name "vmlinuz*") | cut -d" " -f1)"
kernel="${kernel1#/*/}" kernel="${kernel1#/*/}"
linuz="${linuz1#/*/}" linuz="${linuz1#/*/}"
kernelback1="$(find /boot/ -name "initramfs*-fallback.img")" kernelback1="$(find /boot/ -name "initramfs*-fallback.img")"
kernelback="${kernelback1#/*/}" kernelback="${kernelback1#/*/}"
echo "Kernel: ${kernel}" echo "Kernel: ${kernel}"
echo "Linuz: ${linuz}" echo "Linuz: ${linuz}"
echo "Kernel-fallback: ${kernelback}" echo "Kernel-fallback: ${kernelback}"