X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=debian.in%2Fpostinst;h=0e5347e6892ba208518758e34b3cf8a9379e918c;hb=c2f1f663ad7d4cbcd9a61a6a382b6d6dc5117f93;hp=38105b49c8f9d88af9679ba40ba1ed3b30e42059;hpb=8fe603d49f44833cddcf5b13d5adeacdf3bc1ebb;p=cp210x.git diff --git a/debian.in/postinst b/debian.in/postinst index 38105b4..0e5347e 100755 --- a/debian.in/postinst +++ b/debian.in/postinst @@ -7,6 +7,12 @@ 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