... | ... |
@@ -469,17 +469,15 @@ function fgfs () { |
469 | 469 |
fi |
470 | 470 |
;; |
471 | 471 |
--map|--lnm) |
472 |
- if ! pgrep -u $USER -fx "$fgfs_install/littlefgconnect/Little\ FGconnect/littlefgconnect" > /dev/null; then |
|
473 |
- if test \ |
|
474 |
- -x $fgfs_install/littlefgconnect/"Little FGconnect"/littlefgconnect \ |
|
475 |
- -a -r $FGADDON/Addons/littlenavmap/FGData/Protocol/littlenavmap.xml; then |
|
476 |
- nohup sh -c "$fgfs_install/littlefgconnect/Little\ FGconnect/littlefgconnect" > /dev/null 2>&1 & |
|
472 |
+ if ! pgrep -u $USER -fx "python3 ./fgconnect.py" > /dev/null; then |
|
473 |
+ if test -d $FGADDON/Addons/littlenavmap -a -x $fgfs_source/fgconnect/fgconnect.py; then |
|
474 |
+ nohup sh -c "cd $fgfs_source/fgconnect; python3 ./fgconnect.py" > /dev/null 2>&1 & |
|
477 | 475 |
else |
478 |
- echo "can't find Little FGconnect" |
|
476 |
+ echo "can't find FGconnect or littlenavmap addon" |
|
479 | 477 |
return 1 |
480 | 478 |
fi |
481 | 479 |
else |
482 |
- echo "Little FGconnect already lauched" |
|
480 |
+ echo "FGconnect already lauched" |
|
483 | 481 |
fi |
484 | 482 |
fgfs_args+=("--addon=$FGADDON/Addons/littlenavmap") |
485 | 483 |
;; |