... | ... |
@@ -353,6 +353,19 @@ function fgfs () { |
353 | 353 |
rm $mplist |
354 | 354 |
return |
355 | 355 |
;; |
356 |
+ --fgcom) |
|
357 |
+ if test \ |
|
358 |
+ -r $FGROOT/Protocol/fgcom-mumble.xml \ |
|
359 |
+ -a -r $HOME/.local/share/Mumble/Mumble/Plugins/fgcom-mumble.so \ |
|
360 |
+ -a -h $fgfs_install/mumble/lib/libPocoZip.so \ |
|
361 |
+ -a -x $fgfs_install/mumble/bin/mumble; then |
|
362 |
+ nohup sh -c "LD_LIBRARY_PATH=$fgfs_install/mumble/lib $fgfs_install/mumble/bin/mumble" > /dev/null 2>&1 & |
|
363 |
+ fgfs_args+=("--generic=socket,out,10,localhost,16661,udp,fgcom-mumble") |
|
364 |
+ else |
|
365 |
+ echo "can't find protocol definition, or fgcom-mumble plugin" |
|
366 |
+ return 1 |
|
367 |
+ fi |
|
368 |
+ ;; |
|
356 | 369 |
*) |
357 | 370 |
fgfs_args+=($fgfs_arg);; |
358 | 371 |
esac |