summarylogtreecommitdiffstats
path: root/mt7601u-ap-dkms.install
diff options
context:
space:
mode:
authorindra17r2018-06-21 00:04:15 +0700
committerindra17r2018-06-21 00:04:15 +0700
commit656458ba213c77cfa385621b7503952f3a162996 (patch)
treec87990cdcc9885f55ea457766dff71ccf26fca05 /mt7601u-ap-dkms.install
parentbe581990c532fa43af623b9eb75b566e417c1c73 (diff)
downloadaur-mt7601u-ap-dkms.tar.gz
fix error on reinstall/upgrade
Diffstat (limited to 'mt7601u-ap-dkms.install')
-rw-r--r--mt7601u-ap-dkms.install16
1 files changed, 1 insertions, 15 deletions
diff --git a/mt7601u-ap-dkms.install b/mt7601u-ap-dkms.install
index bf5a5c2ae25d..26ec7aedc69d 100644
--- a/mt7601u-ap-dkms.install
+++ b/mt7601u-ap-dkms.install
@@ -1,23 +1,9 @@
-# old version (without -$pkgrel): ${1%%-*}
-# new version (without -$pkgrel): ${2%%-*}
+#!/bin/sh
post_install() {
- dkms install mt7601u-ap/${1%%-*}
echo ">>> You might need to modprobe mt7601Uap manually."
echo ">>> Also, you *must* change the default values (especially WPAPSK)"
echo ">>> in /etc/Wireless/RT2870AP/RT2870AP.dat"
echo ">>> Read the documentation in /usr/src/mt7601u-ap-3.0.0.3/doc."
}
-pre_upgrade() {
- pre_remove ${2%%-*}
-}
-
-post_upgrade() {
- post_install ${1%%-*}
-}
-
-pre_remove() {
- dkms remove mt7601u-ap/${1%%-*} --all
-}
-