Newnigma - Bouquets und Satellite.xml

    • Hi Xerox,

      wie man Files findet ist sicher ein guter Tipp. Danke dafür.
      Aber wenn man weiß, dass zwei Dateien vorhanden sind (und auch wo), nun aber wissen will, welche gültig ist, hilft das nicht weiter.

      @mirg:
      In /etc ist ja nur ein Link auf /etc/tuxbox/satellites.xml

      Ich habe hier zwei satellites.xml, in /etc/tuxbox und /etc/enigma2.
      Welche ist denn nun richtig?

      Tschö,
      Igor


      Schau mal:

      Quellcode

      1. root@dm800:/# find / | grep satellites.xml
      2. /etc/satellites.xml
      3. /etc/enigma2/satellites.xml
      4. /etc/tuxbox/satellites.xml
      5. /usr/share/satellites.xml
      6. /usr/share/tuxbox/satellites.xml
      7. root@dm800:/# ll /etc/satellites.xml
      8. lrwxrwxrwx 1 root root 26 Jan 1 1970 /etc/satellites.xml -> /etc/tuxbox/satellites.xml
      9. root@dm800:/# ll /etc/enigma2/satellites.xml
      10. -rw------- 1 root root 104394 Oct 2 17:41 /etc/enigma2/satellites.xml
      11. root@dm800:/# ll /etc/tuxbox/satellites.xml
      12. -rwxr-xr-x 1 root root 104394 Aug 9 15:46 /etc/tuxbox/satellites.xml
      13. root@dm800:/# ll /usr/share/satellites.xml
      14. lrwxrwxrwx 1 root root 26 Jan 1 1970 /usr/share/satellites.xml -> /etc/tuxbox/satellites.xml
      15. root@dm800:/# ll /usr/share/tuxbox/satellites.xml
      16. lrwxrwxrwx 1 root root 26 Jan 1 1970 /usr/share/tuxbox/satellites.xml -> /etc/tuxbox/satellites.xml
      Alles anzeigen
      DM920, HD+NAS, DVB-S2 FBC

      Dieser Beitrag wurde bereits 5 mal editiert, zuletzt von Igor1312 ()

    • the right one is /etc/tuxbox/satellites.xml others are simlinks to it

      my own settings backup script
      /usr/script/ServicesE2_backup_userscript.sh
      (chmod 755)

      Shell-Script

      1. #!/bin/sh
      2. # MartiniB #
      3. ###################
      4. foo="$0"
      5. crntNameExt=${foo##*/}
      6. crntNameShort=${crntNameExt%_userscr*}
      7. BoxNAME=`cat -u /var/etc/hostname| head -1`
      8. BoxTYPE=`cat -u /proc/stb/info/model| head -1`
      9. TAR_NAME="$crntNameShort"_`date +%Y.%m.%d`_"$BoxNAME"\("$BoxTYPE"\)
      10. DirTmp="/tmp/"
      11. DirEtc="/etc/"
      12. DirTuxbox="/etc/tuxbox/"
      13. DirEnigma="/etc/enigma2/"
      14. CopyTo=""/media/hdd" "/media/net/bigdisk""
      15. add_to_tarline () {
      16. if [ -e "$i" ]; then
      17. files2tar="$files2tar $i"
      18. echo "$i"
      19. echo "$i">>"$LogFile"
      20. else
      21. echo "!!! NOT FOUND: $i"
      22. echo "!!! NOT FOUND: $i">>"$LogFile"
      23. fi
      24. }
      25. print_bt_2_log () {
      26. echo ""
      27. echo "">>"$LogFile"
      28. echo "$BT:"
      29. echo "$BT:">>"$LogFile"
      30. }
      31. files2tar=""
      32. LogFile="$DirTmp$TAR_NAME"_log.txt
      33. echo "$DirTmp$TAR_NAME">"$LogFile"
      34. echo "">>"$LogFile"
      35. rm -rf "$DirTmp$TAR_NAME".tar.gz
      36. BT="SERVICES"
      37. print_bt_2_log
      38. for i in "$DirEnigma"lamedb "$DirEnigma"*bouquet* "$DirEnigma"blacklist "$DirEnigma"whitelist "$DirTuxbox"satellites.xml; do
      39. add_to_tarline
      40. done
      41. if [ ! "$files2tar" = "" ]; then
      42. BT="create "$DirTmp$TAR_NAME".tar.gz"
      43. print_bt_2_log
      44. tar -czf "$DirTmp$TAR_NAME".tar.gz ${files2tar}
      45. md5sum "$DirTmp$TAR_NAME".tar.gz| awk {'print $1'}>"$DirTmp$TAR_NAME"_md5.txt
      46. for cpPATH in $CopyTo; do
      47. if [ -e "$cpPATH" ]; then
      48. echo copy to "$cpPATH"
      49. cp "$DirTmp$TAR_NAME".tar.gz "$cpPATH"/>/dev/null
      50. cp "$DirTmp$TAR_NAME"_md5.txt "$cpPATH"/>/dev/null
      51. cp "$LogFile" "$cpPATH"/>/dev/null
      52. fi
      53. done
      54. fi
      55. 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
    • Ja alles klar.
      Danke!

      In /etc/enigma2 lag eine drin, weil ich die Settings mal per FTP eingespielt hatte ...

      Jetzt noch mal eine vielleicht blöde Frage:
      Muss man einen Sendersuchlauf machen, wenn man die Settings oder satellites.xml ändert?

      Tschö,
      Igor
      DM920, HD+NAS, DVB-S2 FBC