]> oss.titaniummirror.com Git - cp210x.git/blobdiff - debian.in/postinst
Support Ubuntu 14.04 Trusty Tahr
[cp210x.git] / debian.in / postinst
index accd6fcfd09b3bc4201d7a2a577a5ea9c72e13cf..d1dbc4de4ddefac20d065249ff8d06efc178ace2 100755 (executable)
@@ -3,10 +3,17 @@
 set -e
 
 NAME=xxPACKAGExx
-VERSION=xxPKGVERxx
+VERSION=xxDEBVERxx
 
 case "$1" in
     configure)
+      # Use a distro-specific source file, if present
+      c_src=/usr/src/$NAME-$VERSION/cp210x.c
+      c_dist=$(lsb_release -cs)
+      if [ -f "$c_src.$c_dist" ]; then
+       mv $c_src.$c_dist $c_src
+      fi
+
       # Unload old cp210x modules, if in use
       modprobe -rq cp2101 || true
       modprobe -rq cp210x || true