On Aug 06, md wrote:

> > This works when I run modprobe ipw3945 if the module was not loaded or
> > unloaded before. Since udev replaced hotplugs coldplugging, it loads the
> > ipw3945 module when booting, but it doesn't execute the daemon.
[...]
> Looks like you are not considering some issue, with the result that your
> configuration only works in some conditions.

Probably the reason is that ipw3945d cannot write the pid file in
/var/run/ because it's still mounted ro.
I suggest you use something like this to start the daemon:

ACTION=="add", SUBSYSTEM=="module", NAME=="ipw3945", \
        RUN+="/bin/sh -c '/lib/udev/ipw3945d-helper &'"

ACTION=="remove", SUBSYSTEM=="module", NAME=="ipw3945", \
        RUN+="/sbin/ipw3945d --kill"


/lib/udev/ipw3945d-helper:

#!/bin/sh -e

. /lib/udev/hotplug.functions

# hack: wait for /var to be mounted rw
wait_for_file /dev/log

exec /sbin/ipw3945d --quiet

-- 
ciao,
Marco

Attachment: signature.asc
Description: Digital signature

Reply via email to