install services by my own script which works on all other images
whats wrong with scriptroot@dm800se:~# /usr/script/MartiniChannelsListE2_download_userscript.sh
head: invalid option -- '1'
BusyBox v1.18.5 (2012-03-10 02:19:32 CET) multi-call binary.
Usage: head [OPTIONS] [FILE]...
Print first 10 lines of each FILE (or stdin) to stdout.
With more than one FILE, precede each with a filename header.
Options:
-n N[kbm] Print first N lines
N may be suffixed by k (x1024), b (x512), or m (x1024^2).
Connecting to www.kjhdssjoi.tv (1.8.3.5:80)
extract files from servicesE2_bc.tar.gz
reaload services and bouquets
root@dm800se:~#
#!/bin/sh # MartiniB # ## configuration URL="[url="http://www.fyulwdkfjds.tt/m/LNBs/"]http://www.fyulwdkfjds.tt/m/LNBs/[/url]" FILENAME="servicesE2_bc.tar.gz" ## end foo="$0" shTXT=${foo%.*}".txt" shFORCE=`echo $0| sed s?download?download\(forced\)?` [ -e "$shFORCE" ] && rm -f ""$shFORCE"" shFORCE=`echo $0| sed s?download?download_FORCED?` [ ! -e "$shFORCE" ] && echo "#!/bin/sh rm -f "$shTXT" "$0"">"$shFORCE" && chmod 755 "$shFORCE" RemoveTerrestialBouquets () { sed -e 's/.*"userbouquet\.lattelecom\.tv".*//' -e 's/.*"userbouquet\.baltkom\.tv".*//' /etc/enigma2/bouquets.tv| sed '/^$/d'>/etc/enigma2/bouquets.tv.tmp [ -s /etc/enigma2/bouquets.tv.tmp ] && mv /etc/enigma2/bouquets.tv.tmp /etc/enigma2/bouquets.tv rm -f /etc/enigma2/*lattelecom.tv /etc/enigma2/*baltkom.tv } DirEnigma=/etc/enigma2/ E2conf="$DirEnigma"settings rm -rf /tmp/$FILENAME /tmp/"$FILENAME"_md5.txt wget -q "$URL$FILENAME"_md5.txt -P /tmp if [ "$?" = "0" ]; then if [ -s /tmp/"$FILENAME"_md5.txt ]; then CrntMD5=`cat -u /tmp/"$FILENAME"_md5.txt| head -1` if [ -e "$shTXT" ]; then PrevMD5=`cat -u "$shTXT"| head -1` else PrevMD5="00" fi if [ "$PrevMD5" = "$CrntMD5" ]; then echo "file on server isn't changed" else wget $URL$FILENAME -P /tmp if [ "$?" = "0" ]; then if [ -s /tmp/$FILENAME ]; then echo extract files from "$FILENAME" echo "$CrntMD5">"$shTXT" rm -f "$DirEnigma"userbouquet.* tar -zxf /tmp/$FILENAME -C / #[ ! `grep -qs "Type: DVB-T" /proc/bus/nim_sockets` ] && RemoveTerrestialBouquets [ `grep -ics "DVB-T" /proc/bus/nim_sockets` -eq 0 ] && RemoveTerrestialBouquets if grep -qs ".sat.3590." "$E2conf"|| grep -qs ".sat.50." "$E2conf"|| grep -qs ".sat.158." "$E2conf"; then echo change sat positions in Enigma2 config echo restart GUI && sleep 2 init 4 sed -e 's/\.sat\.3590\./\.sat\.3592\./' -e 's/\.sat\.50\./\.sat\.48\./' -e 's/\.sat\.158\./\.sat\.160\./' "$E2conf">"$E2conf".tmp mv "$E2conf".tmp "$E2conf" init 3 else echo reaload services and bouquets #wget -O /dev/null -q [url="http://127.0.0.1/web/servicelistreload?mode=0"]http://127.0.0.1/web/servicelistreload?mode=0[/url] killall -9 enigma2 fi else echo Zero len /tmp/$FILENAME fi else echo !!! Download $URL$FILENAME failed !!! fi fi else echo Zero len /tmp/"$FILENAME"_md5.txt fi else echo !!! Download "$URL$FILENAME"_md5.txt failed !!! fi exit 0
start own emu as second problem:
copyed my own starting script into /usr/script>oscam_cam.sh
and made simlink to
ln -s /usr/script/oscam_cam.sh /etc/init.d/softcam-oscam-ymod
but in emu list new emu didnt came ....
is there only real files posible as /etc/init.d/softcam-**** ?