]> oss.titaniummirror.com Git - cp210x.git/blobdiff - debian.in/postinst
Add karmic support.
[cp210x.git] / debian.in / postinst
index 38105b49c8f9d88af9679ba40ba1ed3b30e42059..0e5347e6892ba208518758e34b3cf8a9379e918c 100755 (executable)
@@ -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