5 PACKAGE_NAME
=$NAME-dkms
6 DEBVERS
=$
(dpkg-query
-W -f='${Version}' $PACKAGE_NAME |
awk -F- '{print $1}')
7 VERSION
=$
(echo $DEBVERS |
sed -e 's/[+-].*//' -e 's/~//g')
9 ARCH
=$
(dpkg
--print-architecture)
18 echo "WARNING: unsupported arch: $ARCH"
25 /usr
/lib
/dkms
/common.postinst
$NAME $VERSION
29 abort-upgrade|abort-remove|abort-deconfigure
)
33 echo "postinst called with unknown argument \`$1'" >&2