@Almir: Use this:
#!/bin/sh sed -i -E 's/^(\s*initrd\s+)(\S*\/)(.*)$/\1\2acpi_fixed.cpio \2\3/g' \ /boot/grub/grub.cfg.new
@Almir: Use this:
#!/bin/sh initrd\ s+)(\S* \/)(.*) $/\1\2acpi_ fixed.cpio \2\3/g' \ grub/grub. cfg.new
sed -i -E 's/^(\s*
/boot/