Comment 18 for bug 284377

Revision history for this message
TJ (tj) wrote : Re: [Bug 284377] Re: No NET with 2.6.27: No buffer space available

On Thu, 2009-03-26 at 19:59 +0000, arand wrote:
> Sorry, but I'm having some trouble following these steps, the sed
> command given is not working for me, using livecd:

Sorry about that - there's a missing -e! When multiple expressions are
used each must be prefixed by -e (which can be optionally omitted when
there's only one expression). It should read:

sed -i -e '/^COPTS/ s/# -g/ -g #/' -e '/^COPTS/ s/-O2//' Makefile

> There is a problem with that sed command. -e needs a file not an
> expression.

No. -e expects an inline script. -f expects a script file.