You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
388 B
Plaintext
26 lines
388 B
Plaintext
PKGVER="$(ls /usr/src/ | grep bbswitch | sed 's/^.*-//')"
|
|
_dkms="/usr/bin/dkms"
|
|
|
|
|
|
post_install() {
|
|
${_dkms} add -m "bbswitch/${PKGVER}"
|
|
${_dkms} build -m "bbswitch/${PKGVER}"
|
|
${_dkms} install -m "bbswitch/${PKGVER}"
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install
|
|
}
|
|
|
|
pre_remove() {
|
|
${_dkms} remove -m "bbswitch/${PKGVER}" --all
|
|
}
|
|
|
|
pre_upgrade() {
|
|
pre_remove
|
|
}
|
|
|
|
post_remove() {
|
|
depmod -a
|
|
}
|