/usr/bin/maitreya7 is in maitreya 7.0.7-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | #!/bin/sh
#
# Startup wrapper for maitreya7.bin
#
# Hint:
# Script maitreya7 is generated from maitreya7.template by Makefile
#
progname=$0
oldcwd=`pwd`
# Resolve symbolic link if possible
if test -L $0
then
echo "$progname is a link, try to resolve..."
echo "Progname is now $progname"
fi
dirname=`dirname $progname`
binary="$dirname/maitreya7.bin"
datarootdir="/usr/share"
abstopbuilddir="/build/maitreya-wFJjur/maitreya-7.0.7"
# test if binary exists an can be executed
if ! test -f $binary
then
echo "Error: binary $binary not found in directory $dirname, exit"
exit 1
fi
if ! test -x $binary
then
echo "Error: binary $binary in directory $dirname not executable, exit"
exit 1
fi
localdatadir="$dirname/.."
xmltestfile="$localdatadir/xml/MultipleViewConfigs.xml"
if test -f $xmltestfile
then
# echo "Seems to be local installation in $abstopbuilddir, setting datadir to '$localdatadir'"
datadir="$localdatadir"
else
# echo "Seems to be regular installation in $datarootdir, setting datadir to '$datarootdir/maitreya7'"
datadir="$datarootdir/maitreya7"
fi
command="$dirname/maitreya7.bin $datadir $*"
echo
echo "Maitreya 7 startup parameters are"
echo " Executable: $dirname/maitreya7.bin"
echo " Datadir: $datadir"
echo " Command: $command"
echo
$command
|