]> oss.titaniummirror.com Git - cp210x.git/blobdiff - debian.in/postinst
Lucid, clean, version
[cp210x.git] / debian.in / postinst
index accd6fcfd09b3bc4201d7a2a577a5ea9c72e13cf..cfaee891fc7784ce184679b3195ed43f8c3aad11 100755 (executable)
@@ -3,10 +3,22 @@
 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
+
+      # If we are on lucid, we need to use the lucid specific source file
+      c_src=/usr/src/$NAME-$VERSION/cp210x.c
+      if [ -f $c_src -a "$(lsb_release -cs)" = "lucid" ]; then
+       mv $c_src.lucid $c_src
+      fi
+
       # Unload old cp210x modules, if in use
       modprobe -rq cp2101 || true
       modprobe -rq cp210x || true