Re: modprobe.conf is ignored

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd Zullinger wrote:
>> So maybe I have to write my own service or I modify the modprobe
>> entry such that a script is started in the background that waits for
>> the filesystem to be mounted read-write and then starts the daemon.
> 
> You could use this simple init script as a basis for an ipw3945d
> service:
> 
> http://svn.rpmforge.net/svn/trunk/rpms/ipw3945d/ipw3945d.init

Thanks for that but I don't want to add a new service for that. This is
because I think the daemon should always be started and stopped together
with the kernel module.

So I found the following solution. It is quite ugly but works well and
only requires to add a new file. Create a new file
/etc/modprobe.d/ipw3945.conf with the following content:

alias eth1 ipw3945

install ipw3945 /sbin/modprobe --ignore-install ipw3945 && \
{ \
while [ -e /var/run/ipw3945d.pid ]; do \
rm /var/run/ipw3945d.pid; \
sleep 1; \
done; \
until [ -e /var/run/ipw3945d.pid ]; do \
/sbin/ipw3945d --quiet; \
sleep 1; \
done; \
} &

remove ipw3945 /sbin/ipw3945d --kill; \
/sbin/modprobe -r --ignore-remove ipw3945


The simple idea behind this to start a background process when the
module gets loaded and repeatedly try to start the daemon until this
succeeds.

Joachim

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux