Re: [ANNOUNCE] hotplug-ng 002 release

Michael Tokarev
2005-05-14T23:02:56Z

Greg KH wrote:
[]
> Now, with the 2.6.12-rc3 kernel, and a patch for module-init-tools, the
> USB hotplug program can be written with a simple one line shell script:
> modprobe $MODALIAS

Speaking of which.. may I suggest this:

if [ ! -L /sys/$DEVPATH/driver ]; then
modprobe $MODALIAS
fi

instead? Hopefully, thanks to previous patches in this area, the sysfs
directory has already been populated properly at a time of the hotplug
event, right?

/mjt