I have installed the ipheth package to be able to
use an iPhone as a modem, and it does work well
except that I have to manually call the
'ipheth-pair' command after an iPhone has been
plugged in, becase the udev rule intended to do this
does not seem to work.
I have made sure that udev is running on my machine,
so I need your help in determining what is wrong
with the rule:
ACTION=="add", ENV{ID_USB_DRIVER}=="ipheth",SYMLINK+="iphone",
RUN+="ipheth-pair"
I wonder, who is supposed to assign the environment
variable ID_USB_DRIVER...
Anton
> I wonder, who is supposed to assign the environment variable
> ID_USB_DRIVER...
Apologies for not answering your question, since I do not know who
is supposed to assign the appropriate value to the environment
variable other than that assigned by the udev system its-self.
Please note that environment variables in udev are not the same
as those in the shell.
<http://reactivated.NET/writing_udev_rules.html#env>
My suggestion to get this to work would but to not use the ENV
condition but use a condition based upon SUBSYSTEM and then
the ATTRS condition using manufacturer, product, serial number
etc as appropriate.
Numerous such examples are given at the above web page.
Read man udevadm. You want the "monitor --environment" option.
Issue the udevadm command in a terminal window, then plug in the
device, udevadm will show you all of the events that udev generates.
Jerry
> Apologies for not answering your question, since I
> do not know who is supposed to assign the appro-
> priate value to the environment variable other
> than that assigned by the udev system its-self.
> [...]
Awww, you needn't apologize for that :)
> My suggestion to get this to work would but to not
> use the ENV condition but use a condition based
> upon SUBSYSTEM and then the ATTRS condition using
> manufacturer, product, serial number etc as appro-
> priate.
Thanks for the advice. I'll try it if I fail to
trace down why the original rule isn't triggered.
Identification by drver name seems 'cleaner' to me.
Anton
> Read man udevadm. You want the "monitor
> --environment" option.
Thank you.
Anton
> if I fail to trace down why the original rule isn't
> triggered. Identification by drver name seems 'cleaner' to me.
But if you do get it working that why, it would be very useful
if you could report back with an explanation.