From owner-freebsd-hackers Mon Oct 28 3:49:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A23737B401 for ; Mon, 28 Oct 2002 03:49:33 -0800 (PST) Received: from semantico.com (choke.semantico.com [212.74.15.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F7A443E3B for ; Mon, 28 Oct 2002 03:49:32 -0800 (PST) (envelope-from dom@semantico.com) Received: from semantico.com (cassia.dyn.rp.lan [192.168.1.236]) by semantico.com (Postfix) with ESMTP id C0BFD32006A; Mon, 28 Oct 2002 11:49:22 +0000 (GMT) Message-ID: <3DBD2442.5050602@semantico.com> Date: Mon, 28 Oct 2002 11:49:22 +0000 From: Dominic Mitchell Organization: Semantico User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 X-Accept-Language: en-gb, sv, en MIME-Version: 1.0 To: Baldur Gislason Cc: Robert Withrow , freebsd-hackers@FreeBSD.ORG Subject: Re: Suggestion: usbd.conf uses rc.conf for options References: <20021027193323.C76EA32B3@ns1.rwwa.com> <20021027194710.6AA69AB93@tesla.foo.is> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Baldur Gislason wrote: > I agree, that would be a nice feature in usbd, but a workaround to gain the same functionality would be: > > attach "/usr/sbin/moused `/usr/bin/perl -e 'while(<>) { $foo = $_ . $foo; } if($foo =~ /^moused_flags="(.*?)"$/im) { print $1; }' < /etc/rc.conf` -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid" Why not just: attach ". /etc/rc.conf; /usr/bin/moused ${moused_flags} -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid" (untested) -Dom -- | Semantico: creators of major online resources | | URL: http://www.semantico.com/ | | Tel: +44 (1273) 722222 | | Address: 33 Bond St., Brighton, Sussex, BN1 1RD, UK. | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message