X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=tools%2Fenigma2.sh.in;h=2f9292a444126644e1bedde84717c0a0d6178e8f;hp=a19e6733558e06b289aed539fa2954eeb38c92d7;hb=849b33656dc710cfa5f644a55680fd396ab1d8d7;hpb=d6b8ff865af5c59b109c7e6ede3868db11e46f7d diff --git a/tools/enigma2.sh.in b/tools/enigma2.sh.in index a19e673..2f9292a 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: #