X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=debian.in%2Fpostinst;h=d1dbc4de4ddefac20d065249ff8d06efc178ace2;hb=9344e45d530b887b4f1f42d606ee0ff4e4798a9d;hp=cfaee891fc7784ce184679b3195ed43f8c3aad11;hpb=4f9bd213561e7ae0d96d6fbe4f20860768f429b4;p=cp210x.git diff --git a/debian.in/postinst b/debian.in/postinst index cfaee89..d1dbc4d 100755 --- a/debian.in/postinst +++ b/debian.in/postinst @@ -7,16 +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 - 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 + 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