From owner-freebsd-hackers Sun Oct 27 11:47:13 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 B81BF37B401 for ; Sun, 27 Oct 2002 11:47:12 -0800 (PST) Received: from tesla.foo.is (tesla.reverse-bias.org [217.151.166.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4163D43E4A for ; Sun, 27 Oct 2002 11:47:12 -0800 (PST) (envelope-from baldur@foo.is) Received: from there (eniac.foo.is [192.168.1.25]) by tesla.foo.is (Postfix) with SMTP id 6AA69AB93; Sun, 27 Oct 2002 19:47:10 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: Baldur Gislason To: Robert Withrow Subject: Re: Suggestion: usbd.conf uses rc.conf for options Date: Sun, 27 Oct 2002 19:47:10 +0000 X-Mailer: KMail [version 1.3.2] References: <20021027193323.C76EA32B3@ns1.rwwa.com> In-Reply-To: <20021027193323.C76EA32B3@ns1.rwwa.com> Cc: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20021027194710.6AA69AB93@tesla.foo.is> 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 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" Baldur On Sunday 27 October 2002 19:33, you wrote: > Hi: > > I notice that usbd.conf has this for the mouse device: > > device "Mouse" > devname "ums[0-9]+" > attach "/usr/sbin/moused -p /dev/${DEVNAME} -I > /var/run/moused.${DEVNAME}.pid" > > If usbd.conf could use rc.conf, this could be modified to > > attach "/usr/sbin/moused ${moused_flags} -p /dev/${DEVNAME} -I > /var/run/moused.${DEVNAME}.pid" > > That way the user wouldn't loose his moused_flags (like accelerator > settings). > > YMMV > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message