Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2013 22:42:12 +0200
From:      Toomas Aas <toomas.aas@raad.tartu.ee>
To:        questions@freebsd.org
Subject:   egrep in /usr/sbin/ndisgen
Message-ID:  <20131210224212.11531v3ymtj51n7o@webmail.raad.tartu.ee>

next in thread | raw e-mail | index | archive | help
Hello!

I'm trying to generate a NDIS-wrapped driver for my USB WiFi adapter  
that is not directly supported by FreeBSD. I've tried various versions  
of Windows driver, but ndisgen doesn't like any of the INF files: "I  
don't recognize this file format. It may not be a valid .INF file."

The INF file validation that is performed by /usr/sbin/ndisgen is:

${EGREP} -i -c "Signature|.S.i.g.n.a.t.u.r.e" ${INFPATH}

I tried this on the latest INF file at hand, and indeed it returns zero:

$ egrep -i -c "Signature|.S.i.g.n.a.t.u.r.e" netr28ux.inf


However:

$ egrep -i -c ".S.i.g.n.a.t.u.r.e" netr28ux.inf
1

So, why does the first egrep not match if the second one matches?

My OS version is 9.2-STABLE amd64

-- 
Toomas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131210224212.11531v3ymtj51n7o>