]> oss.titaniummirror.com Git - cp210x.git/blobdiff - debian.in/postinst
Update cp210x for Ubuntu 10.10 Maverick Meerkat
[cp210x.git] / debian.in / postinst
index 0e5347e6892ba208518758e34b3cf8a9379e918c..d1dbc4de4ddefac20d065249ff8d06efc178ace2 100755 (executable)
@@ -7,10 +7,11 @@ VERSION=xxDEBVERxx
 
 case "$1" in
     configure)
-      # If we are on karmic, we need to use the karmic specific source file
+      # Use a distro-specific source file, if present
       c_src=/usr/src/$NAME-$VERSION/cp210x.c
-      if [ -f $c_src -a "$(lsb_release -cs)" = "karmic" ]; then
-       mv $c_src.karmic $c_src
+      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