summarylogtreecommitdiffstats
path: root/igb-dkms.install
blob: ca693c5f11815b1788a32bcfbda30a7662ceb811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
	dkms install -m igb -v ${1%%-*}
}
pre_upgrade() {
	local curver=${2%%-*}
	# $2 is unset due to a bug. Query current version using pacman as fallback
	[ -n "$curver" ] || curver=$(pacman -Qi igb-dkms | awk '/^Version/{print $3}')
	pre_remove $curver
}
post_upgrade() {
	post_install ${1%%-*}
}
pre_remove() {
	dkms remove -m igb -v ${1%%-*} --all
}