Initial commit: Uploaded everything from abs/core
[arch-rock.git] / support / ipw3945d / ipw3945d.install
blob3d35fc5b904fa60e158e32f0dafb4b72765dd575
1 # arg 1:  the new package version
2 post_install() {
3 cat << EOF
4 IMPORTANT
5 ==> In order to use this daemon you have to agree to Intel's license located
6 ==> in /usr/share/licenses/custom/ipw3945d/LICENSE.ipw3945d
7 ==> else please remove this package.
8 ==>
9 ==> To use this daemon, add 'ipw3945d' to your DAEMONS=() entry in /etc/rc.conf
10 EOF
13 # arg 1:  the new package version
14 # arg 2:  the old package version
15 post_upgrade() {
16 cat << EOF
17 IMPORTANT
18 ==> In order to use this daemon you have to agree to Intel's license located
19 ==> in /usr/share/licenses/custom/ipw3945d/LICENSE.ipw3945d
20 ==> else please remove this package.
21 ==>
22 AUTOMATIC DAEMON LOADING VIA MODPROBE
23 ==> To do this, you typically place the following two lines into your 
24 ==> /etc/modprobe.conf:
25 ==> echo install ipw3945 /sbin/modprobe --ignore-install ipw3945 ; \
26 ==> sleep 0.5 ; /sbin/ipw3945d --quiet >> /etc/modprobe.conf
27 ==>
28 ==> echo remove ipw3945  /sbin/ipw3945d --kill ; \
29 ==> /sbin/modprobe -r --ignore-remove ipw3945 >> /etc/modprobe.conf
30 EOF
33 op=$1
34 shift
35 $op $*