Changeset 39030


Ignore:
Timestamp:
Sep 26, 2016, 4:46:41 PM (3 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r39029 r39030  
    66
    77ARCH=`cat /etc/.arch`
     8BOX=`cat /etc/model`
    89debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
    910curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
     
    1314CMD=/tmp/localhoster
    1415
    15 BIN="$CMD/bin/$BIN.$ARCH"
    16 ln -fs /tmp/localhoster/lib/python2.7/lib-dynload.$ARCH /tmp/localhoster/lib/python2.7/lib-dynload
    17 ln -fs /tmp/localhoster/lib/libpython2.7.so.1.0.$ARCH /tmp/localhoster/lib/libpython2.7.so.1.0
     16BIN="$CMD"/bin/python."$ARCH"
     17ln -fs /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload
     18ln -fs /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0
    1819export PYTHONHOME=/tmp/localhoster
    1920export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib
     21
     22if [ -e "$TMP/hoster.tar" ]; then rm -f $TMP/hoster.tar; fi
     23if [ -e "$TMP/parser.tar" ]; then rm -f $TMP/parser.tar; fi
     24
     25if [ "$ARCH" == "sh4" ] && [ "$BOX" != "ufs912" ]; then
     26        if [ -e "$CMD/lib/python2.7/lib-dynload.mipsel" ]; then rm -f $CMD/lib/python2.7/lib-dynload.mipsel; fi
     27        if [ -e "$CMD/lib/libpython2.7.so.1.0.mipsel" ]; then rm -f $CMD/lib/libpython2.7.so.1.0.mipsel; fi
     28fi
    2029
    2130hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!http://!!' | sed 's!https://!!' | cut -d'/' -f1 | sed 's/www.//' | tr '.' '\n' | head -n1`
Note: See TracChangeset for help on using the changeset viewer.