summarylogtreecommitdiffstats
path: root/e1000e-dkms-lts515.install
blob: b5f5900bf58b2d13138f2f5abf61e74392d8331e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
	dkms install -m e1000e -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 e1000e-dkms | awk '/^Version/{print $3}')
	pre_remove $curver
}
post_upgrade() {
	post_install ${1%%-*}
}
pre_remove() {
	dkms remove -m e1000e -v ${1%%-*} --all
}