X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=debian.in%2Fpostinst;fp=debian.in%2Fpostinst;h=cfaee891fc7784ce184679b3195ed43f8c3aad11;hb=acb98031ee4336b2a8ff979420c55f1253f643f7;hp=0e5347e6892ba208518758e34b3cf8a9379e918c;hpb=b533686218da2e0b6cb59151c130a39dc08a1f64;p=cp210x.git diff --git a/debian.in/postinst b/debian.in/postinst index 0e5347e..cfaee89 100755 --- a/debian.in/postinst +++ b/debian.in/postinst @@ -13,6 +13,12 @@ case "$1" in 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