aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2011-02-16 23:14:04 +0100
committerghost <andreas.monzner@multimedia-labs.de>2011-02-16 23:14:32 +0100
commit2262baf322e7fdfa10a60c260a565fda0d27ee62 (patch)
tree0672dbcf6a2bf6fde88dbe58c849b452c0b77328
parent1da41232bbb095c380dcc2cfb33b7114f05e8ced (diff)
downloadenigma2-2262baf322e7fdfa10a60c260a565fda0d27ee62.tar.gz
enigma2-2262baf322e7fdfa10a60c260a565fda0d27ee62.zip
tools/enigma2.sh.in: add support for libpassthrough, add hook to execute scripts before every enigma2 start
-rwxr-xr-xtools/enigma2.sh.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/enigma2.sh.in b/tools/enigma2.sh.in
index a19e6733..5914c3f8 100755
--- a/tools/enigma2.sh.in
+++ b/tools/enigma2.sh.in
@@ -7,11 +7,23 @@ if [ -x @bindir@/showiframe -a -f /boot/backdrop.mvi ]; then
@bindir@/showiframe /boot/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:
#