Ignore:
Timestamp:
Mar 12, 2018, 11:41:26 PM (19 months ago)
Author:
obi
Message:

test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/hoster.sh

    r41921 r41995  
    1717        FILENAME=none
    1818fi
    19 
    2019
    2120ARCH=`cat /etc/.arch`
     
    3635hlsdlbg="$HLSBIN -u $USERAGENT -o"
    3736
    38 sed 's/#HttpOnly_//g' -i /mnt/network/cookies
     37if [ -e /mnt/network/cookies ];then sed 's/#HttpOnly_//g' -i /mnt/network/cookies; fi
    3938
    4039export PYTHONHOME=/tmp/localhoster
    4140export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib
    42 
    4341
    4442if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
     
    5048if [ ! -e "/tmp/localhoster/lib/python2.7/lib-dynload" ] && [ -e /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" ];then
    5149#       ln -fs /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
    52         mv -f /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
    53         rm -rf /tmp/localhoster/lib/python2.7/lib-dynload.*
     50        time mv -f /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
     51        time rm -rf /tmp/localhoster/lib/python2.7/lib-dynload.*
    5452fi
    5553if [ ! -e "/tmp/localhoster/lib/libpython2.7.so.1.0" ] && [ -e /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" ];then
    5654#       ln -fs /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
    57         mv -f /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
    58         rm -f /tmp/localhoster/lib/libpython2.7.so.1.0.*
     55        time mv -f /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
     56        time rm -f /tmp/localhoster/lib/libpython2.7.so.1.0.*
    5957fi
    6058if [ ! -e "/tmp/localhoster/lib/libcrypto.so.1.0.0" ] && [ -e /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" ];then
    6159#       ln -fs /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" /tmp/localhoster/lib/libcrypto.so.1.0.0
    62         mv -f /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" /tmp/localhoster/lib/libcrypto.so.1.0.0
    63         rm -f /tmp/localhoster/lib/libcrypto.so.1.0.0.*
     60        time mv -f /tmp/localhoster/lib/libcrypto.so.1.0.0."$ARCH" /tmp/localhoster/lib/libcrypto.so.1.0.0
     61        time rm -f /tmp/localhoster/lib/libcrypto.so.1.0.0.*
    6462fi
    6563if [ ! -e "/tmp/localhoster/lib/libssl.so.1.0.0" ] && [ -e /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" ];then
    6664#       ln -fs /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" /tmp/localhoster/lib/llibssl.so.1.0.0
    67         mv -f /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" /tmp/localhoster/lib/libssl.so.1.0.0
    68         rm -f /tmp/localhoster/lib/libssl.so.1.0.0.*
    69 fi
    70 
    71 if [ -e "$TMP/hoster.tar" ]; then rm -f $TMP/hoster.tar; fi
    72 if [ -e "$TMP/parser.tar" ]; then rm -f $TMP/parser.tar; fi
    73 
    74 if [ "$ARCH" == "sh4" ] && [ "$BOX" != "ufs912" ]; then
    75         if [ -e "$CMD/lib/python2.7/lib-dynload.mipsel" ]; then rm -rf $CMD/lib/python2.7/lib-dynload.mipsel; fi
    76         if [ -e "$CMD/lib/python2.7/lib-dynload.arm" ]; then rm -rf $CMD/lib/python2.7/lib-dynload.arm; fi
    77 
    78         if [ -e "$CMD/lib/libpython2.7.so.1.0.mipsel" ]; then rm -rf $CMD/lib/libpython2.7.so.1.0.mipsel; fi
    79         if [ -e "$CMD/lib/libpython2.7.so.1.0.arm" ]; then rm -rf $CMD/lib/libpython2.7.so.1.0.arm; fi
    80 
    81         if [ -e "$CMD/lib/libssl.so.1.0.0.mipsel" ]; then rm -rf $CMD/lib/libssl.so.1.0.0.mipsel; fi
    82         if [ -e "$CMD/lib/libssl.so.1.0.0.arm" ]; then rm -rf $CMD/lib/libssl.so.1.0.0.arm; fi
    83 
    84         if [ -e "$CMD/lib/libcrypto.so.1.0.0.mipsel" ]; then rm -rf $CMD/lib/libcrypto.so.1.0.0.mipsel; fi
    85         if [ -e "$CMD/lib/libcrypto.so.1.0.0.arm" ]; then rm -rf $CMD/lib/libcrypto.so.1.0.0.arm; fi
     65        time mv -f /tmp/localhoster/lib/libssl.so.1.0.0."$ARCH" /tmp/localhoster/lib/libssl.so.1.0.0
     66        time rm -f /tmp/localhoster/lib/libssl.so.1.0.0.*
     67fi
     68
     69if [ -e "$TMP/hoster.tar" ]; then time rm -f $TMP/hoster.tar; fi
     70if [ -e "$TMP/parser.tar" ]; then time rm -f $TMP/parser.tar; fi
     71
     72if [ "$ARCH" == "sh4" ];then #&& [ "$BOX" != "ufs912" ]; then
     73        if [ -e "$CMD/lib/python2.7/lib-dynload.mipsel" ]; then time rm -rf $CMD/lib/python2.7/lib-dynload.mipsel; fi
     74        if [ -e "$CMD/lib/python2.7/lib-dynload.arm" ]; then time rm -rf $CMD/lib/python2.7/lib-dynload.arm; fi
     75
     76        if [ -e "$CMD/lib/libpython2.7.so.1.0.mipsel" ]; then time rm -rf $CMD/lib/libpython2.7.so.1.0.mipsel; fi
     77        if [ -e "$CMD/lib/libpython2.7.so.1.0.arm" ]; then time rm -rf $CMD/lib/libpython2.7.so.1.0.arm; fi
     78
     79        if [ -e "$CMD/lib/libssl.so.1.0.0.mipsel" ]; then time rm -rf $CMD/lib/libssl.so.1.0.0.mipsel; fi
     80        if [ -e "$CMD/lib/libssl.so.1.0.0.arm" ]; then time rm -rf $CMD/lib/libssl.so.1.0.0.arm; fi
     81
     82        if [ -e "$CMD/lib/libcrypto.so.1.0.0.mipsel" ]; then time rm -rf $CMD/lib/libcrypto.so.1.0.0.mipsel; fi
     83        if [ -e "$CMD/lib/libcrypto.so.1.0.0.arm" ]; then time rm -rf $CMD/lib/libcrypto.so.1.0.0.arm; fi
    8684fi
    8785
Note: See TracChangeset for help on using the changeset viewer.