X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/09eaa1b41d5b74464ad83eda66be50689247074f..2c5e4d6c412c1988b32cb7dbede988bc9dfb815d:/tools/enigma2.sh.in diff --git a/tools/enigma2.sh.in b/tools/enigma2.sh.in index a19e6733..2f9292a4 100755 --- a/tools/enigma2.sh.in +++ b/tools/enigma2.sh.in @@ -2,16 +2,29 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ +datarootdir=@datarootdir@ -if [ -x @bindir@/showiframe -a -f /boot/backdrop.mvi ]; then - @bindir@/showiframe /boot/backdrop.mvi +if [ -x @bindir@/showiframe -a -f @datadir@/backdrop.mvi ]; then + @bindir@/showiframe @datadir@/backdrop.mvi +fi + +# hook to execute scripts always before enigma2 start +if [ -x @bindir@/enigma2_pre_start.sh ]; then + @bindir@/enigma2_pre_start.sh fi if [ -d /home/root ]; then cd /home/root fi -LD_PRELOAD=@libdir@/libopen.so.0.0.0 @bindir@/enigma2 +LIBS=@libdir@/libopen.so.0.0.0 + +#check for dreambox specific passthrough helper lib +if [ -e @libdir@/libpassthrough.so ]; then + LIBS="$LIBS @libdir@/libpassthrough.so" +fi + +LD_PRELOAD=$LIBS @bindir@/enigma2 # enigma2 exit codes: #