updated on Wed Jan 25 04:02:27 UTC 2012
[aur-mirror.git] / rtl8187-ng / rtl8187-ng.install
blob9dfb82b34b1e1c4bf18eb99f80a4d85f994b8dde
1 post_install() {
2           post_upgrade
5 post_upgrade() {
6         # updating module dependencies
7         echo ">>> Updating module dependencies. Please wait ..."
8         depmod -a
9         
10         # unloading rtl8187 module
11         echo ">>> Unloading the standard rtl8187 module (could fail if not loaded). Please wait ..."
12         modprobe -r rtl8187
14         # loading rtl8187-ng module
15         echo ">>> Loading the rtl8187-ng module. Please wait ..."
16         modprobe r8187
19 post_remove() {
20         # updating module dependencies
21         echo ">>> Updating module dependencies. Please wait ..."
22         depmod -a
25 op=$1
26 shift
27 $op $*