summarylogtreecommitdiffstats
path: root/r8168-dkms.install
blob: e8a5013baad8495ecea285a04498fb17f9ad33df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
  dkms add r8168/${1%-*}
}

pre_upgrade() {
  pre_remove "$2"
}

post_upgrade() {
  post_install "$1"
}

pre_remove() {
  [ -n "${1%-*}" ] && dkms remove r8168/${1%-*} --all &>/dev/null || true
}