- 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