|
From: Frank M. H. <fm...@sp...> - 2007-11-30 12:52:55
|
On Thursday 29 November 2007 23:36, Brad Baumgartner wrote:
> I asked this on the Hotplug forum, but didn't get any
> responses - has anyone here gotten a National
> Instruments USB GPIB working under Fedora 8?
>
> I have a USB GPIB udev rule that is working fine
> on a Fedora 7 box, but not so good on a Fedora 8 box.
>
> Here is the udev rule I'm using:
>
> ACTION=3D=3D"add", SUBSYSTEM=3D=3D"usb",
> SYSFS{idProduct}=3D=3D"709b", SYSFS{idVendor}=3D=3D"3923",
> RUN+=3D"/etc/udev/my_gpib_loader"
>
> The problem I'm seeing on the Fedora 8 box, is that
> the rule works fine if I plug in the device AFTER the
> system boots up, but if the device is already present
> at boot time, the rule never executes, and I have to
> unplug and replug the device to get it working. On
> the Fedora 7 box, the rule runs fine in both
> scenarios.
It might be that you need to wait until the /dev/gpibN device file appears=
=20
before running gpib_config. My version of udev has wait_for_file a shell=20
function defined in /lib/udev/hotplug.functions that might be useful to=20
try in your my_gpib_loader script.
=2D-=20
=46rank
|