From owner-freebsd-current Tue Apr 10 0: 3:38 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.eqpankkiiriliike.fi (fw.eQpankkiiriliike.fi [212.226.216.93]) by hub.freebsd.org (Postfix) with ESMTP id E2E5637B423 for ; Tue, 10 Apr 2001 00:03:34 -0700 (PDT) (envelope-from sakari.jalovaara@eqonline.fi) Received: from eqonline.fi ([10.11.0.244]) by mail.eqpankkiiriliike.fi (Netscape Messaging Server 4.15) with ESMTP id GBKE9W00.AL5 for ; Tue, 10 Apr 2001 10:03:32 +0300 Message-ID: <3AD2B0B7.74B14708@eqonline.fi> Date: Tue, 10 Apr 2001 10:05:27 +0300 From: Sakari Jalovaara Organization: eQ Online X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: current@FreeBSD.ORG Subject: Re: Failed to load linux.ko during boot Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was wondering about this too. /etc/rc does this: if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then kldload linux > /dev/null 2>&1 fi Works better for me if I add parens to the "if ! ..." bit: if ! ( kldstat -v | grep -E 'linux(aout|elf)' > /dev/null ); then Hmm, "man sh" promises that the first variant should work, but when I try this: if ! pwd | cat /dev/null; then echo yup else echo nope fi it prints "yup". Also prints "yup" if I remove the "!". Shell bug?! (Apr 6 vintage current). ++sakari To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message