All pastes #450890 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-21 03:34 UTC
rendered paste body
3.  AUTOMATIC DAEMON LOADING VIA MODPROBE
-----------------------------------------------

There are some typical steps that are fairly generic in order 
to automate the launching of the daemon you can use your 
distribution's modprobe configuration.  To do this, you need to copy 
ipw3945.ko into your depmod path.  This is typically done via:

	# cp ipw3945.ko /lib/modules/$(uname -r)
	# depmod -a

Now, when you run modprobe it will load the module (and any dependencies, 
such as ieee80211.ko) and modprobe -r will remove the module.  The next 
step is to automate the launching and unloading of the regulatory 
daemon.  To do this, you typically place the following two lines into 
your /etc/modprobe.conf or into a new file /etc/modules.d/ipw3945:

	# echo install ipw3945 /sbin/modprobe --ignore-install ipw3945 ; \
sleep 0.5 ; /sbin/ipw3945d --quiet >> /etc/modules.d/ipw3945

	# echo remove ipw3945  /sbin/ipw3945d --kill ; \
/sbin/modprobe -r --ignore-remove ipw3945 >> /etc/modules.d/ipw3945

NOTE:  The \ above is to continue the entered line to the next line (the 
lines added to the file are wider than 80 columns and so would wrap)

On some distributions you then may need to run the 'modules-update' 
script.

To verify if the above is working, you can type:

	# modprobe ipw3945
	# ps -C ipw3945d

If you see a running 'ipw3945d' then it launched the daemon for you.