With the info from the beginning of individual rule files, and this (http://reactivated.net/writing_udev_rules.html) guide to udev rules this is what I've done.
In the 20-names.rules file what looked like:
Code:
# Other USB devices, commonly grouped under /dev/usb
KERNEL=="auer[0-9]*", NAME="usb/%k"
KERNEL=="cpad[0-9]*", NAME="usb/%k"
KERNEL=="dabusb[0-9]*", NAME="usb/%k"
KERNEL=="hiddev[0-9]*", NAME="usb/%k"
KERNEL=="legousbtower[0-9]*", NAME="usb/%k"
SUBSYSTEMS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k"
Now looks like:
Code:
# Other USB devices, commonly grouped under /dev/usb
KERNEL=="auer[0-9]*", NAME="usb/%k"
KERNEL=="cpad[0-9]*", NAME="usb/%k"
KERNEL=="dabusb[0-9]*", NAME="usb/%k"
KERNEL=="hiddev[0-9]*", NAME="usb/%k"
KERNEL=="legousbtower[0-9]*", NAME="usb/%k"
# For my motorola w385
KERNEL=="ttyUSB[0-9]*", NAME="usb/%k"
# Done with the w385 for now.
SUBSYSTEMS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k"
This was to help my brain organize things a bit, and to play with udev rules. I now have /dev/usb/ttyUSB0 and /dev/usb/ttyUSB1
Then I did this:
Code:
udevinfo -a -p $(udevinfo -q path -n /dev/usb/ttyUSB0)
Which gave me a lot of info, I just ended up using this info:
Code:
ATTRS{product}=="Motorola W385"
I then added to close to the end of the 90-modprobe.rules:
Code:
# w385 stuff..
ATTRS{product}!="Motorola W385", GOTO="w385_end"
RUN+="/sbin/modprobe usbserial vendor=0x22b8 product=0x2b44"
LABEL="w385_end"
Which seems to work... Now for the permissions.
This I appended to 40-permissions.rules:
Code:
#w385 stuff...
KERNEL=="ttyUSB[0-9]*", GROUP="usb"
KERNEL=="ttyUSB[0-9]*", MODE="0666"
Ok, so now I think I have udev calling the modprobe for the device and creating /dev/usb/ttyUSB0 with permissions for users in the group usb to access it. I think. So then I:
Code:
sudo invoke-rc.d udev restart
Success! udev is doing what I want it to.
Then I run moto4lin, reconfigure it, and bam! It doesn't work. all the udev stuff looks to be correct... but I seem to have broken my **** somehow. Anyways, baby steps...
Oh, and also, I did add a group called usb, and put myself in it.