Newnigma2 Services->Emu Menu..->Camd choice..

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Newnigma2 Services->Emu Menu..->Camd choice..

      this menu section requeres some improvements

      1.
      it is soo slow, i can count till 5 until see list of emus
      the same operation under bash script will take less than one second
      script example:

      Shell-Script

      1. #!/bin/sh
      2. #
      3. # MartiniB #
      4. #
      5. #
      6. n="\n"
      7. t="\t"
      8. echo `date +%Y.%m.%d.\ %H:%M:%S`
      9. if [ -e /etc/rc3.d/S98emustart ]; then
      10. echo -e "EMU Running:"$t`grep EMUNAME= /etc/rc3.d/S98emustart| sed s/EMUNAME=//`$n
      11. fi
      12. for i in /usr/script/*.emu; do
      13. echo -e $i$t`grep EMUNAME= $i| sed s/EMUNAME=//`
      14. done
      15. echo `date +%Y.%m.%d.\ %H:%M:%S`
      Alles anzeigen
      result:

      Quellcode

      1. root@Dream8k_M4:~#
      2. root@Dream8k_M4:~# /usr/script/tmp_100916.sh
      3. 2010.09.16. 18:28:50
      4. EMU Running: "Camd3.910L+au_script"
      5. /usr/script/CCcam2_1_4.emu "CCcam 2.1.4"
      6. /usr/script/camd3_cam.emu "Camd3.910L+au_script"
      7. /usr/script/camd3au_cam.emu "Camd3.902_CardUpdate"
      8. /usr/script/mgcamd.emu "Mgcamd 1.30"
      9. /usr/script/mgcamd1.35.emu "Mgcamd 1.35a"
      10. 2010.09.16. 18:28:50
      11. root@Dream8k_M4:~#
      Alles anzeigen



      2.
      NN2 code search for line 'EMUNAME=' in all files under /usr/script/*
      but must touch only files which have .emu at the end - /usr/script/*.emu


      3.
      i have few emus, but after strat some of them i have empty EMU List, till GUI restarted, cant see where is my mistake
      /usr/script/CCcam2_1_4.emu - OK
      /usr/script/camd3_cam.emu - OK

      Shell-Script

      1. #!/bin/sh
      2. ########################################
      3. ###### ######
      4. ### ###
      5. ########################################
      6. /usr/script/my_init.sh &
      7. # EMUNAME is only Display name for EMU Menu
      8. EMUNAME="Camd3.910L+au_script"
      9. # Set parsing camd for CA OSD
      10. # values are "gbox","mgcamd","evocamd","cccam"
      11. CANAME="camd3"
      12. # Set /tmp/ecm.info file delay for CA OSD
      13. # values are "200","300","400","500","600","700","800","900","1000"
      14. ECMINFODELAY="500"
      15. case "$1" in
      16. *st*)
      17. /usr/script/camd3_cam.sh "$1" &
      18. ;;
      19. *)
      20. "$0" stop &
      21. exit 1
      22. ;;
      23. esac
      24. exit 0
      Alles anzeigen
      /usr/script/camd3au_cam.emu - NOK

      Shell-Script

      1. #!/bin/sh
      2. ########################################
      3. ###### ######
      4. ### ###
      5. ########################################
      6. # EMUNAME is only Display name for EMU Menu
      7. EMUNAME="Camd3.902_CardUpdate"
      8. # Set parsing camd for CA OSD
      9. # values are "gbox","mgcamd","evocamd","cccam"
      10. CANAME="camd3"
      11. # Set /tmp/ecm.info file delay for CA OSD
      12. # values are "200","300","400","500","600","700","800","900","1000"
      13. ECMINFODELAY="500"
      14. case "$1" in
      15. *st*)
      16. /usr/script/camd3au_cam.sh "$1" &
      17. ;;
      18. *)
      19. "$0" stop &
      20. exit 1
      21. ;;
      22. esac
      23. exit 0
      Alles anzeigen
      /usr/script/mgcamd.emu - NOK

      Shell-Script

      1. #!/bin/sh
      2. ########################################
      3. ###### Powered by NewNigma2 Team ######
      4. ### http://newngima2.to ###
      5. ########################################
      6. # EMUNAME is only Display name for EMU Menu
      7. EMUNAME="Mgcamd 1.30"
      8. # Set parsing camd for CA OSD
      9. # values are "gbox","mgcamd","evocamd","cccam"
      10. CANAME="mgcamd"
      11. # Set /tmp/ecm.info file delay for CA OSD
      12. # values are "200","300","400","500","600","700","800","900","1000"
      13. ECMINFODELAY="500"
      14. BinNAME="mgcamd_1.30"
      15. remove_tmp ()
      16. {
      17. [ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
      18. [ -e /tmp/pid.info ] && rm -rf /tmp/pid.info
      19. [ -e /tmp/cardinfo ] && rm -rf /tmp/cardinfo
      20. [ -e /tmp/mgcamd.pid ] && rm -rf /tmp/mgcamd.pid
      21. }
      22. case "$1" in
      23. start)
      24. echo "[SCRIPT] $1: $EMUNAME"
      25. remove_tmp
      26. #/usr/bin/"$BinNAME">/dev/null &
      27. /usr/bin/"$BinNAME" &
      28. pidof "$BinNAME">/tmp/mgcamd.pid
      29. ;;
      30. stop)
      31. echo "[SCRIPT] $1: $EMUNAME"
      32. killall -9 "$BinNAME"
      33. remove_tmp
      34. ;;
      35. restart)
      36. $0 stop
      37. sleep 2
      38. $0 start
      39. exit
      40. ;;
      41. *)
      42. $0 stop
      43. exit 1
      44. ;;
      45. esac
      46. exit 0
      Alles anzeigen
      dm7080sstt; 2x dm8000sstt; dm7020s <- Diseq1x4 <- 3x Diseq1x10 <-
      Dishes:
      1.8m 36E;28E;23E;19E;16E;13E;7E
      1.6m 42E;36E
      1.0m 10/9E;5E;1W;8W
      1.0m 15W;22W;30W
      1.1m 4/5W;12W;18W;24W
      1.1m 53E;60E
      1.0m 75E
      TVs: Philips 46pfl9707s; Philips 42pfl9703h
    • If there are a lot of scripts in /usr/script then our function is too slow, you re right.
      We will set this on our todo list, but prio is low because main functions are okay.

      We dont grep trough all files for emu name, only *.emu and *.sh
      You can take a look on /usr/bin/camctrl

      I see no errors too on your not working scripts.
    • hmm, then after execute

      Quellcode

      1. root@Dream8k_M4:~# mv /usr/script/CCcam2_1_4.emu /usr/script/CCcam2_1_4.emu_bc
      2. root@Dream8k_M4:~# ls /usr/script/
      3. CCcam2_1_4.emu_bc camd3_update.sh
      4. Collect_SIDs.sh camd3_update.txt
      5. MartiniChannelsListE2_download_userscript.sh camd3au_cam.emu
      6. MartiniChannelsListE2_download_userscript.txt camd3au_cam.sh
      7. ServicesE2_backup_userscript.sh mgcamd.emu
      8. backup_E2_userscript.sh mgcamd1.35.emu
      9. camd3_cam.emu python_patcher.sh
      10. camd3_cam.sh python_patcher.txt
      11. camd3_startbefore.sh skin_patcher.sh
      12. camd3_startbefore2.sh skin_patcher.txt
      13. camd3_startbefore3.sh tmp_100916.sh
      14. root@Dream8k_M4:~#
      Alles anzeigen

      "CCcam 2.1.4" must disapere from EMU List, but it still there ?!?
      Bilder
      • 100916_tmp_screenshot3.jpg

        19,75 kB, 720×405, 1.977 mal angesehen
      dm7080sstt; 2x dm8000sstt; dm7020s <- Diseq1x4 <- 3x Diseq1x10 <-
      Dishes:
      1.8m 36E;28E;23E;19E;16E;13E;7E
      1.6m 42E;36E
      1.0m 10/9E;5E;1W;8W
      1.0m 15W;22W;30W
      1.1m 4/5W;12W;18W;24W
      1.1m 53E;60E
      1.0m 75E
      TVs: Philips 46pfl9707s; Philips 42pfl9703h
    • wait, i will try fix by self, this is exacly my skils level, didnt know this part is OpenSource :)

      first step gave me some positive result

      Quellcode

      1. List()
      2. {
      3. #for _script in `ls "${SCRIPTPATH}" | egrep '.emu|.sh'`
      4. #do
      5. #SNAME=`basename "$_script"`
      6. #CNAME=`cat ${SCRIPTPATH}/${SNAME} | grep EMUNAME= | sed 's?EMUNAME="??' | sed 's?"??'`
      7. #echo "${SNAME};${CNAME}"
      8. #done
      9. for i in /usr/script/*.emu; do
      10. SNAME=`basename "$i"`
      11. CNAME=`grep EMUNAME= $i| sed s/EMUNAME=//| sed s/\"//g`
      12. echo "${SNAME};${CNAME}"
      13. done
      14. }
      Alles anzeigen
      dm7080sstt; 2x dm8000sstt; dm7020s <- Diseq1x4 <- 3x Diseq1x10 <-
      Dishes:
      1.8m 36E;28E;23E;19E;16E;13E;7E
      1.6m 42E;36E
      1.0m 10/9E;5E;1W;8W
      1.0m 15W;22W;30W
      1.1m 4/5W;12W;18W;24W
      1.1m 53E;60E
      1.0m 75E
      TVs: Philips 46pfl9707s; Philips 42pfl9703h
    • for 1;2 optimized camdctrl version in attachement

      also for 3 found solution:
      .
      ..
      ...
      #/usr/bin/"$BinNAME" &
      /usr/bin/"$BinNAME">/dev/null &
      ...
      ..
      .
      Dateien
      dm7080sstt; 2x dm8000sstt; dm7020s <- Diseq1x4 <- 3x Diseq1x10 <-
      Dishes:
      1.8m 36E;28E;23E;19E;16E;13E;7E
      1.6m 42E;36E
      1.0m 10/9E;5E;1W;8W
      1.0m 15W;22W;30W
      1.1m 4/5W;12W;18W;24W
      1.1m 53E;60E
      1.0m 75E
      TVs: Philips 46pfl9707s; Philips 42pfl9703h
    • some other changes
      Dateien
      dm7080sstt; 2x dm8000sstt; dm7020s <- Diseq1x4 <- 3x Diseq1x10 <-
      Dishes:
      1.8m 36E;28E;23E;19E;16E;13E;7E
      1.6m 42E;36E
      1.0m 10/9E;5E;1W;8W
      1.0m 15W;22W;30W
      1.1m 4/5W;12W;18W;24W
      1.1m 53E;60E
      1.0m 75E
      TVs: Philips 46pfl9707s; Philips 42pfl9703h
    • @nightmann
      can you change order of call commands when open [Camd choice..] menu
      from

      Quellcode

      1. /usr/bin/camdctrl list
      2. /usr/bin/camdctrl current

      to

      Quellcode

      1. /usr/bin/camdctrl current
      2. /usr/bin/camdctrl list

      openig this menu section will not be faster, but will look faster and more correct when painted from the top
      dm7080sstt; 2x dm8000sstt; dm7020s <- Diseq1x4 <- 3x Diseq1x10 <-
      Dishes:
      1.8m 36E;28E;23E;19E;16E;13E;7E
      1.6m 42E;36E
      1.0m 10/9E;5E;1W;8W
      1.0m 15W;22W;30W
      1.1m 4/5W;12W;18W;24W
      1.1m 53E;60E
      1.0m 75E
      TVs: Philips 46pfl9707s; Philips 42pfl9703h