On Saturday 23 April 2005 21:52, Adriaan de Groot wrote:
> On Saturday 23 April 2005 13:50, Bjarne Wichmann Petersen wrote:
> > This is a first draft:
>
> Lookin' pretty good though.
>
> > This output is for a Palm Zire and translates into:
> >
> > product 0x0070
> > vendor 0x0830
> > release 0x0100 (ie. rev 1.00)
>
> Newer products all have vendor 0x0830 product 0x61, IIRC. In any case, it's
> not necessary to be this specific in the usbd.conf, I don't think.
So vendor should be enough?
> > attach "rm -f /dev/pilot; \
> > chmod 666 /dev/${DEVNAME}; \
> > ln -s /dev/${DEVNAME} /dev/pilot"
> > detach "rm -f /dev/pilot"
> An additional way to achieve this -- cleaner, too, if you can get it to
> work and wade through the wonky documentation -- is with devd (as far as
> the permissions go).
Why would that be cleaner?
But would an entry into devd.conf look like this?
attach 10 {
match "vendor" "0x0830";
device-name "ucom[0-9]+";
action "rm -f /dev/pilot";
action "chmod 666 /dev/$device-name";
action "ln -s /dev/$device-name /dev/pilot";
};
detach 10 {
device-name "ucom[0-9]+";
action "rm -f /dev/pilot";
};
I've got no clue to what I've written, should copied some of the examples from
the devd.conf. I don't know why the number "10" should be attached (or "100"
for that matter). I don't know if multiple "action"-lines is supported.
Bjarne
_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd