X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=debian.in%2Fpostinst;h=0e5347e6892ba208518758e34b3cf8a9379e918c;hb=56b08d47157648f762999ccae3682698fe5c9202;hp=accd6fcfd09b3bc4201d7a2a577a5ea9c72e13cf;hpb=23cec7cb87403d4d305f02a9312d6174c29ce16b;p=cp210x.git diff --git a/debian.in/postinst b/debian.in/postinst index accd6fc..0e5347e 100755 --- a/debian.in/postinst +++ b/debian.in/postinst @@ -3,10 +3,16 @@ set -e NAME=xxPACKAGExx -VERSION=xxPKGVERxx +VERSION=xxDEBVERxx case "$1" in configure) + # If we are on karmic, we need to use the karmic specific source file + c_src=/usr/src/$NAME-$VERSION/cp210x.c + if [ -f $c_src -a "$(lsb_release -cs)" = "karmic" ]; then + mv $c_src.karmic $c_src + fi + # Unload old cp210x modules, if in use modprobe -rq cp2101 || true modprobe -rq cp210x || true