Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2002 19:47:10 +0000
From:      Baldur Gislason <baldur@foo.is>
To:        Robert Withrow <witr@rwwa.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Suggestion:  usbd.conf uses rc.conf for options
Message-ID:  <20021027194710.6AA69AB93@tesla.foo.is>
In-Reply-To: <20021027193323.C76EA32B3@ns1.rwwa.com>
References:  <20021027193323.C76EA32B3@ns1.rwwa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021027194710.6AA69AB93>