Changeset 43065


Ignore:
Timestamp:
11/29/18 22:21:08 (5 years ago)
Author:
obi
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/oealliance/usr/bin/titan.sh

    r43059 r43065  
    3939fi
    4040
     41if [ -d /home/root ]; then
     42        cd /home/root
     43        export HOME=/home/root
     44fi
     45
     46#check for sundtek tuner helper lib
     47if [ -e /opt/lib/libmediaclient.so ]; then
     48        LIBS="/opt/lib/libmediaclient.so /usr/lib/libopen.so.0.0.0"
     49else
     50        LIBS="/usr/lib/libopen.so.0.0.0"
     51fi
     52
     53#check for specific pagecache helper lib
     54if [ -e /usr/lib/libpagecache.so ]; then
     55        LIBS="$LIBS /usr/lib/libpagecache.so"
     56fi
     57
     58#check for receiver specific passthrough helper lib
     59if [ -e /usr/lib/libpassthrough.so ]; then
     60        LIBS="$LIBS /usr/lib/libpassthrough.so"
     61fi
     62
    4163# in case sysctl.conf is not properly loaded - load sysctl.conf here again...
    4264sysctl -p
    4365
    44 #sleep 5
    45 /usr/local/bin/titan /mnt/config/titan.cfg
     66(sleep 2; echo "enigma2 is the main pvr application... adjust oom score!"; PID=$(pidof enigma2); \
     67        [ -e /proc/$PID/oom_score_adj ] && echo "-999" > /proc/$PID/oom_score_adj || echo "-17" > /proc/$PID/oom_adj;) &
    4668
    47 ret=$?# enigma2 exit codes:
     69sleep 5
     70LD_PRELOAD=$LIBS /usr/local/bin/titan /mnt/config/titan.cfg
     71
     72# enigma2 exit codes:
    4873#
    4974# 1 - halt
Note: See TracChangeset for help on using the changeset viewer.