10 lines
205 B
Bash
10 lines
205 B
Bash
#!/bin/sh
|
|
if grep "boot=live" /proc/cmdline >/dev/null ; then
|
|
exit 0
|
|
fi
|
|
for kernel in $(ls /lib/modules) ; do
|
|
if [ ! -f /boot/initrd.img-$kernel ] ; then
|
|
mkinitrd -u -k $kernel
|
|
fi
|
|
done
|