Changeset 42639


Ignore:
Timestamp:
Aug 9, 2018, 10:30:21 PM (12 months ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r42638 r42639  
    1 #!/bin/sh
     1#!/bin/bash
    22# first sh box hoster for titannit mfg obi
    33
     
    3232DUKBIN=/usr/bin/duk
    3333fi
     34
    3435if [ ! -e "$CURLBIN" ];then CURLBIN=curl; fi
    3536#USERAGENT='Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0'
     
    4748export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/localhoster/lib
    4849
     50
    4951if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
    5052if [ "$debuglevel" == "99" ]; then curlbin2="$curlbin2 -v"; fi
     
    5254
    5355wgetbin="wget -q -T2"
     56
     57if [ "$ARCH" == "i386" ]; then
     58        if [ -d "/tmp/localhoster/lib/python2.7" ];then
     59                mv -f /tmp/localhoster/lib/python2.7 /tmp/localhoster/lib/python2.7_old
     60        fi
     61        ln -fs /usr/lib/python2.7 /tmp/localhoster/lib/python2.7
     62fi
    5463
    5564if [ ! -e "/tmp/localhoster/lib/python2.7/lib-dynload" ] && [ -e /tmp/localhoster/lib/python2.7/lib-dynload."$ARCH" ];then
     
    91100fi
    92101
    93 hostercheck=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d'/' -f1 | tail -n1 | tr '.' '\n' | wc -l`
     102hostercheck=`echo "$INPUT" | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d"/" -f1 | tail -n1 | tr '.' '\n' | wc -l`
    94103hosterline=`expr $hostercheck - 1`
    95 hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d'/' -f1 | tail -n1 | cut -d"." -f$hosterline`
    96 #echo $hoster
     104if [ "$hosterline" == "0" ];then hosterline=1; fi
     105hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!://!\n!' | cut -d"/" -f1 | tail -n1 | cut -d"." -f$hosterline`
    97106
    98107ecostream()
Note: See TracChangeset for help on using the changeset viewer.