From owner-freebsd-emulation Mon Jul 17 7:34:26 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 834C837B92E for ; Mon, 17 Jul 2000 07:34:19 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id QAA35712; Mon, 17 Jul 2000 16:34:15 +0200 (CEST) (envelope-from des@flood.ping.uio.no) To: emulation@FreeBSD.ORG Subject: Re: linux.sh should mount linprocfs References: From: Dag-Erling Smorgrav Date: 17 Jul 2000 16:34:14 +0200 In-Reply-To: Dag-Erling Smorgrav's message of "17 Jul 2000 16:31:10 +0200" Message-ID: Lines: 20 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dag-Erling Smorgrav writes: > Dag-Erling Smorgrav writes: > > +if [ -z $(kldstat -v | grep 'linprocfs') ] ; then > > + kldstat linprocfs > > + mount_linprocfs linprocfs /compat/linux/proc > > fi > Uh, add double quotes around the $() stuff on the first line there. This is definitely not my day! The second kldstat should be a kldload instead. Plus, the linprocfs might be loaded but not mounted, so we need to separate kldload and mount and test for each separately. And it's not really necessary to kldload, since mount_linprocfs will do it if the module isn't loaded already. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message