From owner-freebsd-questions@FreeBSD.ORG Tue Dec 10 20:51:56 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A92C1583 for ; Tue, 10 Dec 2013 20:51:56 +0000 (UTC) Received: from kuller.raad.tartu.ee (kuller.raad.tartu.ee [213.184.43.8]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5CFA41F68 for ; Tue, 10 Dec 2013 20:51:55 +0000 (UTC) Received: from kuller.raad.tartu.ee (localhost [127.0.0.1]) by kuller.raad.tartu.ee (Postfix) with ESMTP id 919E539850 for ; Tue, 10 Dec 2013 22:42:17 +0200 (EET) X-Virus-Scanned: amavisd-new at post.raad.tartu.ee Received: from kuller.raad.tartu.ee ([127.0.0.1]) by kuller.raad.tartu.ee (kuller.raad.tartu.ee [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hKcXaRqn-LTm for ; Tue, 10 Dec 2013 22:42:12 +0200 (EET) Received: by kuller.raad.tartu.ee (Postfix, from userid 80) id 4D1C639845; Tue, 10 Dec 2013 22:42:12 +0200 (EET) Received: from 76.20.190.90.dyn.estpak.ee (76.20.190.90.dyn.estpak.ee [90.190.20.76]) by webmail.raad.tartu.ee (Horde Framework) with HTTP; Tue, 10 Dec 2013 22:42:12 +0200 Message-ID: <20131210224212.11531v3ymtj51n7o@webmail.raad.tartu.ee> Date: Tue, 10 Dec 2013 22:42:12 +0200 From: Toomas Aas To: questions@freebsd.org Subject: egrep in /usr/sbin/ndisgen MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.7) X-Originating-IP: 90.190.20.76 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2013 20:51:56 -0000 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