blob: c5342daf5028c7dbad20c0271866cf1db2898174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
set -e
#DEBHELPER#
if dpkg --compare-versions "$2" lt-nl "3.0.3-3~" ; then
for d in /etc/dkms/template-dkms-mkdeb/debian /etc/dkms/template-dkms-mkdeb /etc/dkms/template-dkms-mkbmdeb/debian /etc/dkms/template-dkms-mkbmdeb
do
test ! -d $d || rmdir --ignore-fail-on-non-empty $d
done
fi
if dpkg --compare-versions "$2" lt-nl "3.0.10-8~" ; then
for f in /boot/*.old-dkms
do
test ! -f "$f" || rm -fv "$f"
done
fi
|