Initial import
This commit is contained in:
25
bbswitch-dkms-git.install
Normal file
25
bbswitch-dkms-git.install
Normal file
@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user