egrep in /usr/sbin/ndisgen

Toomas Aas toomas.aas at raad.tartu.ee
Tue Dec 10 20:51:56 UTC 2013


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


More information about the freebsd-questions mailing list