@Filip: I don't know. The comment box wraps the lines to 75 character length. Therefore the sed line has broken into two lines. If you copied the raw text from the comment into the file it wont work.
Use this version instead: (note the backslash at the end of line)
#!/bin/sh
sed -i -E 's/^(\s*initrd\s+)(\S*\/)(.*)$/\1\2acpi_fixed.cpio \2\3/g' \
/boot/grub/grub.cfg.new
@Filip: I don't know. The comment box wraps the lines to 75 character length. Therefore the sed line has broken into two lines. If you copied the raw text from the comment into the file it wont work.
Use this version instead: (note the backslash at the end of line)
#!/bin/sh initrd\ s+)(\S* \/)(.*) $/\1\2acpi_ fixed.cpio \2\3/g' \ grub/grub. cfg.new
sed -i -E 's/^(\s*
/boot/