Hallo
ich wollte per script Boquets direkt auf die Box herunterladen, dieses habe ich über einen Script versucht.
Was nicht ganz klappt ist dass die Boquets Anordnung komplett verschoben wird, z.B. ist mein Boquet Musik nicht mehr an dritter stelle befindet sich nach dem Ausführen des scripts an vierter Stelle.
Ganz oben wird das heruntergeladene Boquet angezeigt.
Mein Script sieht wie folgt aus:
die Url dienst als Beispiel ist offline
Alles anzeigen
Die Ausgabe die ich nach Ausführen bekomme
was mache ich verkehrt bzw. habe ich nicht beachtet?
ich wollte per script Boquets direkt auf die Box herunterladen, dieses habe ich über einen Script versucht.
Was nicht ganz klappt ist dass die Boquets Anordnung komplett verschoben wird, z.B. ist mein Boquet Musik nicht mehr an dritter stelle befindet sich nach dem Ausführen des scripts an vierter Stelle.
Ganz oben wird das heruntergeladene Boquet angezeigt.
Mein Script sieht wie folgt aus:
die Url dienst als Beispiel ist offline
Shell-Script
- #!/bin/bash
- url="https://raw.githubusercontent.com/userbouquet.news__tv_.tv"
- rm /etc/enigma2/userbouquet."$bouquet"__news_.tv
- wget -O /etc/enigma2/userbouquet."$bouquet"__news_.tv $url
- if ! cat /etc/enigma2/bouquets.tv | grep -v grep | grep -c $bouquet > /dev/null
- then
- echo "[+]Creating Folder for iptv and rehashing..."
- cat /etc/enigma2/bouquets.tv | > /etc/enigma2/new_bouquets.tv
- echo '#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.'$bouquet'__tv_.tv" ORDER BY bouquet' >> /etc/enigma2/new_bouquets.tv
- cat /etc/enigma2/bouquets.tv | >> /etc/enigma2/new_bouquets.tv
- rm /etc/enigma2/bouquets.tv
- mv /etc/enigma2/new_bouquets.tv /etc/enigma2/bouquets.tv
- fi
- #now reload servicelist
- wget -q -O - http://127.0.0.1/web/servicelistreload?mode=2 > /dev/null 2>&1
- echo "neue Senderlist Updated "
Die Ausgabe die ich nach Ausführen bekomme
Quellcode
- root@formuler1:/usr/script# sh iptv.sh rm: can't remove '/etc/enigma2/userbouquet.__FILM_.tv': No such file or directory Connecting to raw.githubusercontent.com (151.101.112.133:443) userbouquet.__FILM_. 100% |***********************************************************************| 1550k 0:00:00 ETA BusyBox v1.24.1 (2019-12-16 02:04:56 CET) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file [+]Creating Folder for iptv and rehashing... neue Senderlist Updated root@formuler1:/usr/script#
was mache ich verkehrt bzw. habe ich nicht beachtet?