diff options
Diffstat (limited to 'games-arcade/mtp-target-bin/files/mtp-target-bin.sh')
-rw-r--r-- | games-arcade/mtp-target-bin/files/mtp-target-bin.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/games-arcade/mtp-target-bin/files/mtp-target-bin.sh b/games-arcade/mtp-target-bin/files/mtp-target-bin.sh new file mode 100644 index 000000000000..801d41b2cac6 --- /dev/null +++ b/games-arcade/mtp-target-bin/files/mtp-target-bin.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +cd /opt/mtp-target-bin + +exe="" +dir="" +case $0 in + *client*) exe=client; dir=client;; + *server*) exe=mtp_target_service; dir=server;; + *) exit 1;; +esac + +cd ${dir} +export LD_LIBRARY_PATH="../lib:${LD_LIBRARY_PATH}" +exec ./${exe} "$@" |