#!/bin/sh LINE="************************************************************" EmuServer='/etc/CCcam.cfg' #FreeServertmpa75=/tmp/oscam.tar.gz #FreeServertmpb75=/tmp/oscam.tar.gz FreeServertmpa=/tmp/freeservra* FreeServertmpb=/tmp/freeservrb* FreeServertmpe=/tmp/freeservre* #rm -f $FreeServer > /dev/null 2>&1 #rm -f $FreeServer2 > /dev/null 2>&1 #rm -f $FreeServertmpa > /dev/null 2>&1 #rm -f $FreeServertmpb > /dev/null 2>&1 #rm -f $FreeServertmpe > /dev/null 2>&1 #HOST HTTPSERV74="http://dreamosat.net/oscam/index.php?&direction=1&order=nom&directory=1.20_TRUNK/arm_dm900-solo4k" #HTTPSERV75="http://oscam.dreamosat.net/index.php?action=downloadfile&filename=oscam-svn' + dttm + '-arm_dm900-solo4k-webif-oscam-emu-patched.tar.gz&directory=1.20_TRUNK/arm_dm900-solo4k&"' + dttm + '/' #TMP FILES FreeServertmpb74=/tmp/freeservrb74 #FreeServertmpb75=/tmp/freeservrb75 #TMP FILES FreeServertmpa74=/tmp/freeservra74 #FreeServertmpa75=/tmp/freeservra75 FreeServertmpe74=/tmp/freeservre74 #Download Files wget -O $FreeServertmpa74 $HTTPSERV74 > /dev/null 2>&1 #wget -O $FreeServertmpa75 $HTTPSERV75 > /dev/null 2>&1 #Copy Lines sed -ne '/> svn/p' $FreeServertmpa74 > $FreeServertmpb74 #sed -ne '/ svn//' $FreeServertmpb74 > $FreeServertmpe74 sed -i 's|||' $FreeServertmpb74 > $FreeServertmpe74 FreeServertmpc74=`cat $FreeServertmpb74` echo $FreeServertmpc74 >> $FreeServertmpe74 #print 'Date', dttm #a=$FreeServertmpb74 cd /tmp nomFichier=/tmp/freeservra74 nomFichier=oscam-svn11469-arm_dm900-solo4k-webif-oscam-emu-patched.tar.gz freeservrb74=/tmp/freeservrb74 freeservre74=freeservrb74 nomFichier=`wget -q -O- --trust-server-names "http://dreamosat.net/oscam/index.php?&direction=1&order=nom&directory=1.20_TRUNK/arm_dm900-solo4k" | sed -n '0,/.*downloadfile/s/.*filename=\(oscam-svn.*tar.gz\)&.*/\1/p'` wget -q -O- --trust-server-names "http://oscam.dreamosat.net/index.php?action=downloadfile&filename="$nomFichier"&directory=1.20_TRUNK/arm_dm900-solo4k&" | tar -xOz > /usr/bin/oscam #grep -o "^[0-9]\+" #nomFichier=`wget -q -O- --trust-server-names "http://dreamosat.net/oscam/index.php?&direction=1&order=nom&directory=1.20_TRUNK/arm_dm900-solo4k" | grep -Pom1 '.*?href="index.php\?action=downloadfile\&filename=\K.*?(?=&)'` #wget -q -O- --trust-server-names "http://oscam.dreamosat.net/index.php?action=downloadfile&filename=$nomFichier&directory=1.20_TRUNK/arm_dm900-solo4k&" | tar -xzvf > /usr/bin/oscam #tar xzvf /tmp/*.tar.gz #rm -f oscam.tar.gz > /dev/null 2>&1 #cat /tmp/o* >> /usr/bin/oscam #cp /tmp/o* /usr/bin/oscam #mv /usr/bin/svn* /usr/bin/oscam #Find FreeServertmpc74=`cat $FreeServertmpb74` FreeServertmpc75=`cat $FreeServertmpb75` #Created Final file #echo $FreeServertmpc74 >> $FreeServer2 #echo $FreeServertmpc75 >> $FreeServer2 #Clean #rm -f $FreeServer2 #rm -f $FreeServertmpa* $FreeServertmpb* sed '/^\s*$/d' $EmuServer echo "$LINE" echo "* Finished *" echo "* mino60 - RAED - Fairbird *" echo "* You can find Servers lines in (/etc/CCcam.cfg) *" echo "$LINE" exit 0