Changeset 39030 for titan/mediathek/localhoster/hoster.sh
- Timestamp:
- 09/26/16 16:46:41 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/hoster.sh
r39029 r39030 6 6 7 7 ARCH=`cat /etc/.arch` 8 BOX=`cat /etc/model` 8 9 debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2` 9 10 curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies' … … 13 14 CMD=/tmp/localhoster 14 15 15 BIN="$CMD /bin/$BIN.$ARCH"16 ln -fs /tmp/localhoster/lib/python2.7/lib-dynload. $ARCH/tmp/localhoster/lib/python2.7/lib-dynload17 ln -fs /tmp/localhoster/lib/libpython2.7.so.1.0. $ARCH/tmp/localhoster/lib/libpython2.7.so.1.016 BIN="$CMD"/bin/python."$ARCH" 17 ln -fs /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" /tmp/localhoster/lib/python2.7/lib-dynload 18 ln -fs /tmp/localhoster/lib/libpython2.7.so.1.0."$ARCH" /tmp/localhoster/lib/libpython2.7.so.1.0 18 19 export PYTHONHOME=/tmp/localhoster 19 20 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib 21 22 if [ -e "$TMP/hoster.tar" ]; then rm -f $TMP/hoster.tar; fi 23 if [ -e "$TMP/parser.tar" ]; then rm -f $TMP/parser.tar; fi 24 25 if [ "$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 28 fi 20 29 21 30 hoster=`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.