summaryrefslogtreecommitdiff
path: root/plugins/text2skin/skins
diff options
context:
space:
mode:
authorroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
committerroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
commit0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch)
tree11517ce0d3d2977c6732b3aa583b0008083e0bd3 /plugins/text2skin/skins
downloadx-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz
x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2
hello world
Diffstat (limited to 'plugins/text2skin/skins')
-rw-r--r--plugins/text2skin/skins/DeepBlue-0.1.3-extra-logos.tar.gzbin0 -> 1903 bytes
-rw-r--r--plugins/text2skin/skins/install-skins.sh57
2 files changed, 57 insertions, 0 deletions
diff --git a/plugins/text2skin/skins/DeepBlue-0.1.3-extra-logos.tar.gz b/plugins/text2skin/skins/DeepBlue-0.1.3-extra-logos.tar.gz
new file mode 100644
index 0000000..c6250e0
--- /dev/null
+++ b/plugins/text2skin/skins/DeepBlue-0.1.3-extra-logos.tar.gz
Binary files differ
diff --git a/plugins/text2skin/skins/install-skins.sh b/plugins/text2skin/skins/install-skins.sh
new file mode 100644
index 0000000..96f1f74
--- /dev/null
+++ b/plugins/text2skin/skins/install-skins.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis)
+# von Marc Wernecke - www.zulu-entertainment.de
+# 08.12.2006
+
+# skins fuer text2skin
+
+source ./../../../x-vdr.conf
+source ./../../../setup.conf
+source ./../../../functions
+
+# remove old skins
+if [ -d "$VDRCONFDIR/plugins/text2skin" ]; then
+ rm -rf "$VDRCONFDIR/plugins/text2skin"
+fi
+
+if [ ! -d "$VDRCONFDIR/plugins/text2skin/fonts" ]; then
+ mkdir -p "$VDRCONFDIR/plugins/text2skin/fonts" && log "Erstelle \"$VDRCONFDIR/plugins/text2skin/fonts\""
+fi
+
+if [ -n "$SKINS" ]; then
+ echo "$SKINS" | sed '/^[ ]*$/d' | while read i; do
+ VAR=`basename $i`
+ if [ -f "$FILES/plugins/$VAR" ]; then
+ log "$VAR gefunden"
+ elif [ -f "$VAR" ]; then
+ log "$VAR gefunden"
+ cp "$VAR" "$FILES/plugins"
+ else
+ log "$VAR nicht gefunden"
+ log "starte download"
+ if wget --tries=2 "$i" --directory-prefix="$FILES/plugins" &>/dev/null; then
+ log "Download von $VAR erfolgreich"
+ else
+ log "Download von $VAR nicht erfolgreich"
+ fi
+ fi
+
+ if [ -f "$FILES/plugins/$VAR" ]; then
+ if echo "$FILES/plugins/$VAR" | grep ".bz2$" &>/dev/null; then
+ tar xjf "$FILES/plugins/$VAR" -C "$VDRCONFDIR/plugins/text2skin" && log "Extrahiere $VAR"
+ else
+ tar xzf "$FILES/plugins/$VAR" -C "$VDRCONFDIR/plugins/text2skin" && log "Extrahiere $VAR"
+ fi
+ else
+ log "Installation von $VAR nicht erfolgreich"
+ fi
+ done
+
+ # rechte setzen
+ chown -R $VDRUSER:$VDRGROUP "$VDRCONFDIR/plugins/text2skin"
+fi
+
+exit 0
+
+