diff options
author | William Gathoye | 2017-06-10 14:16:28 +0200 |
---|---|---|
committer | William Gathoye | 2017-06-10 15:22:15 +0200 |
commit | 9ce8910c108ede8f1a91a729694b2c5b5becf546 (patch) | |
tree | 83ec5863356b3cb938ca7dedae74e022141b9e86 /ax88179_178a-dkms.install | |
parent | 55254630c6ff51f9829cd15d31a8932f68f27640 (diff) | |
download | aur-9ce8910c108ede8f1a91a729694b2c5b5becf546.tar.gz |
dkms calls are now implemented as pacman hooks
Diffstat (limited to 'ax88179_178a-dkms.install')
-rw-r--r-- | ax88179_178a-dkms.install | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/ax88179_178a-dkms.install b/ax88179_178a-dkms.install index 4d1d692e0f36..e69de29bb2d1 100644 --- a/ax88179_178a-dkms.install +++ b/ax88179_178a-dkms.install @@ -1,49 +0,0 @@ -post_install (){ - DKMS=$(which dkms) - - $DKMS add -m ax88179_178a-dkms -v 1.18.0 - $DKMS build -m ax88179_178a-dkms -v 1.18.0 - $DKMS install -m ax88179_178a-dkms -v 1.18.0 - - echo " >> rmmod ax88179_178a" - rmmod ax88179_178a - echo " >> depmod -a" - depmod -a - echo " >> modprobe ax88179_178a-dkms " - modprobe ax88179_178a-dkms - echo " >> done " - -} - -pre_upgrade(){ - pre_remove "$2" -} - -post_upgrade(){ - post_install "$1" -} - -pre_remove (){ - _inmemory=$(/usr/bin/lsmod | /usr/bin/grep asix) - if [ ! -z "$_inmemory" ]; then - /usr/bin/rmmod ax88179_178a &> /dev/null - fi - - DKMS=$(which dkms) - - _line=$($DKMS status -m ax88179_178a-dkms) - if echo "$_line" | grep -E 'added|built|installed'; then - version=$(echo "$_line" | sed 's/ax88179_178a-dkms,\([^,]*\)[,:].*/\1/;t;d') - $DKMS remove -m ax88179_178a-dkms -v $version --all - fi - -} - -post_remove () { - /sbin/depmod -a - modprobe ax88179_178a -} - -op=$1 -shift -$op $* |