RDEPENDS_enigma2-plugin-systemplugins-devicemanager = "util-linux-blkid ntfs-3g dosfstools"
PN = "enigma2"
-PR = "r7"
+PR = "r8"
SRCDATE = "20121128"
#SRCDATE is NOT used by git to checkout a specific revision
file://enigma2_vuplus_addlibpythondeps.patch;patch=1;pnum=1 \
file://enigma2_vuplus_pluginbrowser.patch;striplevel=1 \
file://enigma2_vuplus_transcodingsetup_inetd.patch;striplevel=1 \
+ file://enigma2_vuplus_proc_oom_score_adj.patch;striplevel=1 \
file://MyriadPro-Regular.otf \
file://MyriadPro-Semibold.otf \
file://MyriadPro-SemiboldIt.otf \
--- /dev/null
+diff --git a/tools/enigma2.sh.in b/tools/enigma2.sh.in
+index 2f9292a..170835e 100755
+--- a/tools/enigma2.sh.in
++++ b/tools/enigma2.sh.in
+@@ -24,6 +24,9 @@ if [ -e @libdir@/libpassthrough.so ]; then
+ LIBS="$LIBS @libdir@/libpassthrough.so"
+ fi
+
++(sleep 2; echo "enigma2 is the main pvr application... adjust oom score!"; PID=$(pidof enigma2); \
++ [ -e /proc/$PID/oom_score_adj ] && echo "-999" > /proc/$PID/oom_score_adj || echo "-17" > /proc/$PID/oom_adj;) &
++
+ LD_PRELOAD=$LIBS @bindir@/enigma2
+
+ # enigma2 exit codes: