Date: Tue, 10 Apr 2001 10:05:27 +0300 From: Sakari Jalovaara <sakari.jalovaara@eqonline.fi> To: current@FreeBSD.ORG Subject: Re: Failed to load linux.ko during boot Message-ID: <3AD2B0B7.74B14708@eqonline.fi>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AD2B0B7.74B14708>