cojo
Teammitglied
Ich will über script eine nfi von meinem eigenen Server runter laden,nur irgendwo muss ich nen denkfehler haben,das will nicht klappen.
Hat einer ne Idee?
Hat einer ne Idee?
IMAGEDIR=/media/hdd/build/upload-image
MODEL=dm800sev2
DATUM=$(date +%Y.%m.%d)
EXTRACTDIR=/media/hdd/build/clone-image
UPDATER=/media/hdd/build/clone-image/OpenATV-5.1-${MODEL}-$DATUM/image/usr/lib/enigma2/python/Plugins/Extensions/update-plugin
SCRIPT=/media/hdd/build/clone-image/OpenATV-5.1-${MODEL}-$DATUM/image/usr/lib/enigma2/python/Plugins/Extensions/update-plugin/scripts
if [ $MODEL = "dm800sev2" ]; then
echo "Downloading Open ATV-5.1 image ${MODEL}"
OPENATV=`wget -O- -q "http://xxxx-xxxxx.com/Image/ ${MODEL}" | grep openatv-*.*-${MODEL} | tail -1 | sed -e 's/<\/a.*//g' | sed -e 's/<[^>]*>//g' | sed q | sed -e 's/.*openatv/openatv/g' | sed -e 's/\.nfi//g'`
URL="http://xxxx-xxxxx.com/Image/${MODEL}/${OPENATV}.nfi"
echo ">> Bitte warten >>"
cd $IMAGEDIR
wget -q -U 'Mozilla/5.0 (X11; Linux x86_64; rv:2.0b9pre) Gecko/20110111 Firefox/4.0' -O OpenATV-5.1-${MODEL}-$DATUM.nfi $URL > /dev/null 2>&1
echo "Please wait >> Bitte warten >>"
MODEL=dm800sev2
DATUM=$(date +%Y.%m.%d)
EXTRACTDIR=/media/hdd/build/clone-image
UPDATER=/media/hdd/build/clone-image/OpenATV-5.1-${MODEL}-$DATUM/image/usr/lib/enigma2/python/Plugins/Extensions/update-plugin
SCRIPT=/media/hdd/build/clone-image/OpenATV-5.1-${MODEL}-$DATUM/image/usr/lib/enigma2/python/Plugins/Extensions/update-plugin/scripts
if [ $MODEL = "dm800sev2" ]; then
echo "Downloading Open ATV-5.1 image ${MODEL}"
OPENATV=`wget -O- -q "http://xxxx-xxxxx.com/Image/ ${MODEL}" | grep openatv-*.*-${MODEL} | tail -1 | sed -e 's/<\/a.*//g' | sed -e 's/<[^>]*>//g' | sed q | sed -e 's/.*openatv/openatv/g' | sed -e 's/\.nfi//g'`
URL="http://xxxx-xxxxx.com/Image/${MODEL}/${OPENATV}.nfi"
echo ">> Bitte warten >>"
cd $IMAGEDIR
wget -q -U 'Mozilla/5.0 (X11; Linux x86_64; rv:2.0b9pre) Gecko/20110111 Firefox/4.0' -O OpenATV-5.1-${MODEL}-$DATUM.nfi $URL > /dev/null 2>&1
echo "Please wait >> Bitte warten >>"