summarylogtreecommitdiffstats
path: root/broadcom-wl-dkms.install
diff options
context:
space:
mode:
Diffstat (limited to 'broadcom-wl-dkms.install')
-rw-r--r--broadcom-wl-dkms.install32
1 files changed, 5 insertions, 27 deletions
diff --git a/broadcom-wl-dkms.install b/broadcom-wl-dkms.install
index 9c7677fa6fa8..c94de1ef0033 100644
--- a/broadcom-wl-dkms.install
+++ b/broadcom-wl-dkms.install
@@ -1,31 +1,4 @@
post_install() {
- dkms_install $1
-}
-
-pre_upgrade() {
- dkms_remove $2
-}
-
-post_upgrade() {
- dkms_install $1
-}
-
-pre_remove() {
- dkms_remove $1
-}
-
-dkms_remove() {
- # In case a different version is installed, use "dkms status broadcom-wl"
- # to list and remove installed versions.
-
- if [ -n "$(dkms status -m broadcom-wl -v ${1%%-*})" ]; then
- dkms remove -m broadcom-wl -v ${1%%-*} --all || return 1
- fi
-}
-
-dkms_install() {
- dkms install -m broadcom-wl -v ${1%%-*} || return 1
-
cat << EOF || return 1
To load the new module, run as root:
@@ -34,5 +7,10 @@ To load the new module, run as root:
modprobe wl
or just reboot the system.
+
EOF
}
+
+post_upgrade() {
+ post_install $1
+}